{"id":13398315,"url":"https://github.com/epsy/clize","last_synced_at":"2025-07-11T00:00:46.144Z","repository":{"id":1986149,"uuid":"2918192","full_name":"epsy/clize","owner":"epsy","description":"CLIze: Turn Python functions into command-line interfaces","archived":false,"fork":false,"pushed_at":"2023-11-24T00:15:13.000Z","size":1332,"stargazers_count":478,"open_issues_count":31,"forks_count":26,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-09-30T21:49:59.150Z","etag":null,"topics":["argument-parser","cli","python"],"latest_commit_sha":null,"homepage":"http://clize.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"owncloud/documentation","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epsy.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"docs/contributing.rst","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2011-12-05T17:02:55.000Z","updated_at":"2024-08-23T00:35:12.000Z","dependencies_parsed_at":"2023-11-24T01:27:21.976Z","dependency_job_id":"dacc3cda-d9dd-4653-a605-4e7d348949a6","html_url":"https://github.com/epsy/clize","commit_stats":{"total_commits":445,"total_committers":15,"mean_commits":"29.666666666666668","dds":"0.11460674157303374","last_synced_commit":"162f84967bde7aaccb80d96472cec6e61331be71"},"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsy%2Fclize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsy%2Fclize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsy%2Fclize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epsy%2Fclize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epsy","download_url":"https://codeload.github.com/epsy/clize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243511659,"owners_count":20302594,"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":["argument-parser","cli","python"],"created_at":"2024-07-30T19:00:22.569Z","updated_at":"2025-03-14T02:31:17.049Z","avatar_url":"https://github.com/epsy.png","language":"Python","readme":"*****\nClize\n*****\n\n.. image:: https://readthedocs.org/projects/clize/badge/?version=stable\n   :target: http://clize.readthedocs.io/en/stable/?badge=stable\n   :alt: Documentation Status\n.. image:: https://badges.gitter.im/Join%20Chat.svg\n   :alt: Join the chat at https://gitter.im/epsy/clize\n   :target: https://gitter.im/epsy/clize?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\n.. image:: https://github.com/epsy/clize/actions/workflows/ci.yml/badge.svg?branch=master\n   :target: https://github.com/epsy/clize/actions/workflows/ci.yml\n.. image:: https://coveralls.io/repos/epsy/clize/badge.svg?branch=master\n   :target: https://coveralls.io/r/epsy/clize?branch=master\n\nClize is an argument parser for `Python \u003chttps://www.python.org/\u003e`_.  You can\nuse Clize as an alternative to ``argparse`` if you want an even easier way to\ncreate command-line interfaces.\n\n**With Clize, you can:**\n\n* Create command-line interfaces by creating functions and passing them to\n  `clize.run`.\n* Enjoy a CLI automatically created from your functions' parameters.\n* Bring your users familiar ``--help`` messages generated from your docstrings.\n* Reuse functionality across multiple commands using decorators.\n* Extend Clize with new parameter behavior.\n\n**Here's an example:**\n\n.. code-block:: python\n\n    from clize import run\n\n    def hello_world(name=None, *, no_capitalize=False):\n        \"\"\"Greets the world or the given name.\n\n        :param name: If specified, only greet this person.\n        :param no_capitalize: Don't capitalize the given name.\n        \"\"\"\n        if name:\n            if not no_capitalize:\n                name = name.title()\n            return 'Hello {0}!'.format(name)\n        return 'Hello world!'\n\n    if __name__ == '__main__':\n        run(hello_world)\n\nThe python code above can now be used on the command-line as follows:\n\n.. code-block:: console\n\n    $ pip install clize\n    $ python3 hello.py --help\n        Usage: hello.py [OPTIONS] name\n\n        Greets the world or the given name.\n\n        Positional arguments:\n          name   If specified, only greet this person.\n\n        Options:\n          --no-capitalize   Don't capitalize the given name.\n\n        Other actions:\n          -h, --help   Show the help\n    $ python3 hello.py\n    Hello world!\n    $ python3 hello.py john\n    Hello John!\n    $ python3 hello.py dave --no-capitalize\n    Hello dave!\n\nYou can find the documentation and tutorials at http://clize.readthedocs.io/\n","funding_links":[],"categories":["Python","[Python](https://www.python.org/)"],"sub_categories":["Useful awesome list for Go cli"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepsy%2Fclize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepsy%2Fclize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepsy%2Fclize/lists"}