{"id":41505076,"url":"https://github.com/markusgrotz/click-prompt","last_synced_at":"2026-01-23T19:16:06.932Z","repository":{"id":97060719,"uuid":"519964616","full_name":"markusgrotz/click-prompt","owner":"markusgrotz","description":"interactive command line options for the click library","archived":false,"fork":false,"pushed_at":"2025-12-22T13:05:37.000Z","size":3844,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-05T12:02:52.711Z","etag":null,"topics":["cli","python"],"latest_commit_sha":null,"homepage":"","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/markusgrotz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-01T04:36:56.000Z","updated_at":"2025-12-22T13:05:37.000Z","dependencies_parsed_at":"2024-08-23T21:24:26.676Z","dependency_job_id":"a11064e0-5ae5-495d-b22c-51b59a4aa111","html_url":"https://github.com/markusgrotz/click-prompt","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/markusgrotz/click-prompt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusgrotz%2Fclick-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusgrotz%2Fclick-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusgrotz%2Fclick-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusgrotz%2Fclick-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markusgrotz","download_url":"https://codeload.github.com/markusgrotz/click-prompt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusgrotz%2Fclick-prompt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28698485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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"],"created_at":"2026-01-23T19:16:06.331Z","updated_at":"2026-01-23T19:16:06.923Z","avatar_url":"https://github.com/markusgrotz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# click-prompt\n\n[![Supported Python Versions](https://img.shields.io/pypi/pyversions/click-prompt)](https://pypi.org/project/click-prompt/) \n[![PyPI version](https://img.shields.io/pypi/v/click-prompt)](https://pypi.org/project/click-prompt/) \n[![License](https://img.shields.io/pypi/l/click-prompt)](https://github.com/markusgrotz/click-prompt/blob/main/LICENSE.md)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Downloads/Month](https://pepy.tech/badge/click-prompt/month)](https://pepy.tech/project/click-prompt)\n\n\n**click-prompt** extends the [Click](https://click.palletsprojects.com/) command-line interface library by adding intuitive, interactive prompts. It's perfect for building more user-friendly CLI tools.\n\nThis library is inspired by a post on [stackoverflow.com](https://stackoverflow.com/questions/54311067/).\n\nContributions are welcome! [Open a pull request](https://github.com/markusgrotz/click-prompt/pulls) or [submit an issue](https://github.com/markusgrotz/click-prompt/issues).\n\n## Installation\n\nTo install `click-prompt`, use pip:\n\n```bash\npip install click-prompt\n```\n\n## Usage\n\nHere’s a basic example using the `choice_option` decorator:\n\n```python\nimport click\nfrom click_prompt import choice_option\n\n@click.command()\n@choice_option('--fruit', type=click.Choice(['Apples', 'Bananas', 'Grapefruits', 'Mangoes']))\ndef select_fruit(fruit: str):\n    \"\"\"Prompt user to select a fruit from a list.\"\"\"\n    print(f\"You selected: {fruit}\")\n\nif __name__ == '__main__':\n    select_fruit()\n```\n\n## Example\n\nFor more examples see the file [example.py](https://github.com/markusgrotz/click-prompt/blob/main/example.py).\n\n![Example](https://github.com/markusgrotz/click-prompt/blob/main/docs/example_cli.gif?raw=true)\n\n## Available Decorators\n\nEach of these decorators replaces a `click.Option` (and also works with `click.Argument`):\n\n- **`choice_option`**  \n  Prompt the user to select one (or more with `multiple=True`) from a list.\n\n- **`confirm_option`**  \n  Yes/No confirmation prompt.\n\n- **`filepath_option`**  \n  Prompt the user to select a file path with auto-completion.\n\n- **`auto_complete_option`**  \n  Input prompt with tab completion from a list of choices.\n\n- **`input_text_option`**  \n  Prompt the user for free-form text input.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/markusgrotz/click-prompt/blob/main/LICENSE.md) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkusgrotz%2Fclick-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkusgrotz%2Fclick-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkusgrotz%2Fclick-prompt/lists"}