{"id":21260382,"url":"https://github.com/nlm/cliprompt","last_synced_at":"2025-03-15T06:44:26.737Z","repository":{"id":71728281,"uuid":"55496222","full_name":"nlm/cliprompt","owner":"nlm","description":"Python CLI prompt library","archived":false,"fork":false,"pushed_at":"2016-04-15T09:51:51.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T21:47:35.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-04-05T09:46:34.000Z","updated_at":"2022-11-14T06:26:05.000Z","dependencies_parsed_at":"2023-05-16T16:45:29.380Z","dependency_job_id":null,"html_url":"https://github.com/nlm/cliprompt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fcliprompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fcliprompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fcliprompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Fcliprompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlm","download_url":"https://codeload.github.com/nlm/cliprompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695537,"owners_count":20332626,"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":[],"created_at":"2024-11-21T04:18:20.263Z","updated_at":"2025-03-15T06:44:26.732Z","avatar_url":"https://github.com/nlm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"cliprompt\n=========\n\nThis tool helps you ask questions via CLI\n\nPrompt\n------\n\nPrompt is a single-line prompt and will loop until a correct answer\nis detected. It is based on argparse, so arguments \"choices\", \"type\",\nand \"default\" work the same way\n\nExample:\n\n    \u003e\u003e\u003e from cliprompt import Prompt\n    \u003e\u003e\u003e prompt = Prompt(choices=['blue', 'red', 'yellow'])\n    \u003e\u003e\u003e result = prompt.prompt('what color do you prefer ?')\n    \u003e\u003e\u003e print('your favorite color is {}'.format(result))\n\n    what color do you prefer ? ('blue', 'red', 'yellow') green\n    argument answer: invalid choice: 'green' (choose from 'blue', 'red', 'yellow')\n    what color do you prefer ? ('blue', 'red', 'yellow') blue\n    your favorite color is blue\n\nMultiPrompt\n-----------\n\nMultiPrompt is a multi-line prompt. It will acquire lines until a line\nwith only the EOF string is reached. This defaults to '.'\n\nExample:\n\n    \u003e\u003e\u003e from cliprompt import MultiPrompt\n    \u003e\u003e\u003e prompt = MultiPrompt()\n    \u003e\u003e\u003e result = prompt.prompt('enter text:')\n    \u003e\u003e\u003e print('***')\n    \u003e\u003e\u003e print(result)\n    \u003e\u003e\u003e print('***')\n\n    enter text: (finish with \".\")\n    hello world\n    this is a test\n    .\n    ***\n    hello world\n    this is a test\n    ***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlm%2Fcliprompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlm%2Fcliprompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlm%2Fcliprompt/lists"}