{"id":18918050,"url":"https://github.com/piccolo-orm/targ","last_synced_at":"2025-09-26T19:31:18.686Z","repository":{"id":42370175,"uuid":"256787858","full_name":"piccolo-orm/targ","owner":"piccolo-orm","description":"Python CLI using type hints and docstrings.","archived":false,"fork":false,"pushed_at":"2024-07-15T20:04:07.000Z","size":123,"stargazers_count":20,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T02:38:59.021Z","etag":null,"topics":["cli","docstrings","hacktoberfest","python","typehints"],"latest_commit_sha":null,"homepage":"https://targ.readthedocs.io/en/latest/index.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piccolo-orm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","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":"2020-04-18T15:29:57.000Z","updated_at":"2024-08-09T14:41:11.000Z","dependencies_parsed_at":"2024-11-08T10:33:46.138Z","dependency_job_id":"473195c2-2dea-4dcd-9639-ea3f7faf6de9","html_url":"https://github.com/piccolo-orm/targ","commit_stats":{"total_commits":91,"total_committers":5,"mean_commits":18.2,"dds":0.05494505494505497,"last_synced_commit":"5a208cb3f282fed2d1a114ea0b73ada60b801b35"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Ftarg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Ftarg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Ftarg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piccolo-orm%2Ftarg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piccolo-orm","download_url":"https://codeload.github.com/piccolo-orm/targ/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234338065,"owners_count":18816450,"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","docstrings","hacktoberfest","python","typehints"],"created_at":"2024-11-08T10:29:26.573Z","updated_at":"2025-09-26T19:31:13.409Z","avatar_url":"https://github.com/piccolo-orm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://raw.githubusercontent.com/piccolo-orm/targ/master/docs/logo_hero.png \"Targ Logo\")\n\n# targ\n\nBuild a Python CLI for your app, just using type hints and docstrings.\n\nJust register your type annotated functions, and that's it - there's no special\nsyntax to learn, and it's super easy.\n\n```python\n# main.py\nfrom targ import CLI\n\n\ndef add(a: int, b: int):\n    \"\"\"\n    Add the two numbers.\n\n    :param a:\n        The first number.\n    :param b:\n        The second number.\n    \"\"\"\n    print(a + b)\n\n\nif __name__ == \"__main__\":\n    cli = CLI()\n    cli.register(add)\n    cli.run()\n\n```\n\nAnd from the command line:\n\n```bash\n\u003e\u003e\u003e python main.py add 1 1\n2\n```\n\nTo get documentation:\n\n```bash\n\u003e\u003e\u003e python main.py add --help\n\nadd\n===\nAdd the two numbers.\n\nUsage\n-----\nadd a b\n\nArgs\n----\na\nThe first number.\n\nb\nThe second number.\n\n```\n\n## Documentation\n\nThe full documentation is available on [Read the Docs](https://targ.readthedocs.io/en/latest/index.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiccolo-orm%2Ftarg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiccolo-orm%2Ftarg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiccolo-orm%2Ftarg/lists"}