{"id":37068403,"url":"https://github.com/xyzpw/menuchoice","last_synced_at":"2026-01-14T08:00:42.400Z","repository":{"id":239151901,"uuid":"798729602","full_name":"xyzpw/menuchoice","owner":"xyzpw","description":"Command line menu selector.","archived":false,"fork":false,"pushed_at":"2024-08-03T14:52:55.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-06T04:21:54.319Z","etag":null,"topics":["item-selector","menu-item","menu-select","pip"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/menuchoice/","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/xyzpw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-05-10T10:51:19.000Z","updated_at":"2024-08-03T14:52:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"54563e62-6f91-4cf7-9901-0c913d051b2b","html_url":"https://github.com/xyzpw/menuchoice","commit_stats":null,"previous_names":["xyzpw/menuchoice"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/xyzpw/menuchoice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyzpw%2Fmenuchoice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyzpw%2Fmenuchoice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyzpw%2Fmenuchoice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyzpw%2Fmenuchoice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyzpw","download_url":"https://codeload.github.com/xyzpw/menuchoice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyzpw%2Fmenuchoice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["item-selector","menu-item","menu-select","pip"],"created_at":"2026-01-14T08:00:24.874Z","updated_at":"2026-01-14T08:00:42.358Z","avatar_url":"https://github.com/xyzpw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# menuchoice\n![Pepy Total Downlods](https://img.shields.io/pepy/dt/menuchoice)\n![GitHub repo size](https://img.shields.io/github/repo-size/xyzpw/menuchoice)\n![PyPi - Version](https://img.shields.io/pypi/v/menuchoice)\n\n**menuchoice** is a terminal-based menu selector with different menu styles and features.\n\n![menuchoice-demo2](https://github.com/xyzpw/menuchoice/assets/76017734/c3ca060d-0c39-47be-9173-fa0d415a20b9)\n\n## Usage\nCreating a selection menu:\n```python\nimport menuchoice\nmenu = menuchoice.MenuSelector(items=[\n    \"Hip-hop\",\n    \"Rock\",\n    \"Pop\",\n    \"Country\",\n    \"EDM\",\n], title=\"Most Streamed Music USA\", description=\"Select a genre of music.\")\n```\n\u003e [!TIP]\n\u003e items can be given brief descriptions if they are type dictionary: `{\"option\": \"brief description\"}`\n\n### Arrow Selection\nArrow select will display an arrow which can be moved up/down with the arrow keys:\n```python\nmenu.arrow_select()\n```\nOutput upon selection:\n```python\n[(4, \"EDM\")]\n```\n\nAdditionally, multiple options can be selected:\n```python\n# no less than 2, no more than 3\nmenu.arrow_select(max_items=(2, 3))\n# Adds an option to select all items\nmenu.arrow_select(allow_all=True)\n```\nOutput:\n```python\n[(4, \"EDM\"), (1, \"Rock\")]\n```\n\n### Highlight Selecting\nHighlight menus introduce the ability to have multiple pages (this is optional):\n```python\nmenu.highlight_select(pages=[[0, 1, 2], [3, 4]])\n```\n\nThe above code will create two pages, the first page contains the first three options, the second contains the last two options.\u003cbr\u003e\nTo switch between these pages, use the left/right arrow keys.\n\nThe highlight menu can also disable options:\n```python\nmenu.highlight_select(disabled_items=[3])\n```\nThis code above will prevent the user from selecting index 3 of the menus items (the fourth option).\n\n### Modifying Options\nMenu selector items can have multiple options which can be navigated through with left/right arrow keys.\n\n```python\nmenu.modify_select(options=[(0, \"second option\", \"third option\")])\n```\nThis will allow the user to use left/right arrow keys to navigate through 3 different options for a single item's line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyzpw%2Fmenuchoice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyzpw%2Fmenuchoice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyzpw%2Fmenuchoice/lists"}