{"id":17929597,"url":"https://github.com/angrybayblade/clea","last_synced_at":"2025-06-10T13:05:56.215Z","repository":{"id":182752325,"uuid":"660916291","full_name":"angrybayblade/clea","owner":"angrybayblade","description":" 🧿  Clea - A framework for writing CLI applications quickly","archived":false,"fork":false,"pushed_at":"2024-03-10T10:46:16.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-03T15:17:13.378Z","etag":null,"topics":["cli","python","python-cli"],"latest_commit_sha":null,"homepage":"http://clea.angrybayblade.me/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angrybayblade.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-01T07:56:02.000Z","updated_at":"2025-01-21T13:22:11.000Z","dependencies_parsed_at":"2023-10-24T10:31:01.338Z","dependency_job_id":"75acc3a2-494d-4cec-97f6-2db719f17e87","html_url":"https://github.com/angrybayblade/clea","commit_stats":null,"previous_names":["angrybayblade/clea"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrybayblade%2Fclea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrybayblade%2Fclea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrybayblade%2Fclea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrybayblade%2Fclea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angrybayblade","download_url":"https://codeload.github.com/angrybayblade/clea/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angrybayblade%2Fclea/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258887847,"owners_count":22773390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","python","python-cli"],"created_at":"2024-10-28T21:09:46.067Z","updated_at":"2025-06-10T13:05:56.185Z","avatar_url":"https://github.com/angrybayblade.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clea - A lightweight framework for creating CLI applications in python\n\nClea is uses type annotations to generate the command/group defintions and parse the arguments at the runtime. To start with clea run\n\n```\npip3 install clea\n```\n\nDefine you first command using \n\n```python\nfrom typing_extensions import Annotated\n\nfrom clea.params import Integer\nfrom clea.wrappers import command\n\n@command\ndef add(\n    n1: Annotated[int, Integer()],\n    n2: Annotated[int, Integer()],\n) -\u003e None:\n    \"\"\"Add two numbers\"\"\"\n\n    print(f\"Total {n1 + n2}\")\n```\n\nInvoke the command at runtime using\n\n```python\nfrom clea.runner import run\n\nif __name__ == \"__main__\":\n    run(cli=add)\n```\n\n\u003e The example is taken from [add.py](examples/add.py) in the examples folder.\n\nYou can check the command definition using \n\n```bash\n$ python add.py --help\n\nUsage: add [OPTIONS] N1 N2\n\n        Add two numbers\n\nOptions:\n\n    --help                        Show help and exit.\n```\n\nExecute the command using\n\n```bash\n$ python add.py 2 3\n\nTotal 5\n```\n\nRead more about the usage of clea in the [docs](https://angrybayblade.github.io/clea/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangrybayblade%2Fclea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangrybayblade%2Fclea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangrybayblade%2Fclea/lists"}