{"id":23156275,"url":"https://github.com/baggerfast/pyconsolemenu","last_synced_at":"2025-08-17T23:32:31.110Z","repository":{"id":44394598,"uuid":"510757230","full_name":"BaggerFast/PyConsoleMenu","owner":"BaggerFast","description":"A simple Python menu in the terminal using curses. Ideal for people who want to quickly make a menu without writing their own complicated crutches. Includes: SelectorMenu, MultipleSelectorMenu, FunctionalMenu.","archived":false,"fork":false,"pushed_at":"2023-03-06T05:53:25.000Z","size":1427,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-14T09:48:32.951Z","etag":null,"topics":["console-application","console-library","console-menu","curses-library","library","menu","menusystem","pip","python","python-menu"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=jxq9UQrVNq4\u0026t=1s","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/BaggerFast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-05T13:52:28.000Z","updated_at":"2024-11-16T12:20:43.000Z","dependencies_parsed_at":"2022-07-14T21:00:37.131Z","dependency_job_id":null,"html_url":"https://github.com/BaggerFast/PyConsoleMenu","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/BaggerFast%2FPyConsoleMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaggerFast%2FPyConsoleMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaggerFast%2FPyConsoleMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaggerFast%2FPyConsoleMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaggerFast","download_url":"https://codeload.github.com/BaggerFast/PyConsoleMenu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230181506,"owners_count":18185938,"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":["console-application","console-library","console-menu","curses-library","library","menu","menusystem","pip","python","python-menu"],"created_at":"2024-12-17T21:13:02.936Z","updated_at":"2024-12-17T21:13:03.530Z","avatar_url":"https://github.com/BaggerFast.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyConsoleMenu\n\n[![CodeFactor](https://www.codefactor.io/repository/github/baggerfast/pyconsolemenu/badge)](https://www.codefactor.io/repository/github/baggerfast/pyconsolemenu)\n[![BUILD-STATUS](https://github.com/BaggerFast/PyConsoleMenu/workflows/CI/badge.svg)](https://github.com/BaggerFast/PyConsoleMenu/actions)\n\nA simple Python menu in the terminal using curses. \nIdeal for people who want to quickly make a menu without writing their own complicated crutches. \nIncludes: SelectorMenu, MultipleSelectorMenu, FunctionalMenu.\n\n## Preview\n![Selector](https://github.com/BaggerFast/PyConsoleMenu/blob/main/assets/selector.gif?raw=true)\n\n[See other](https://github.com/BaggerFast/PyConsoleMenu/tree/main/assets)\n\n## Installation 💾\n- using pip\n```\n$ pip install PyConsoleMenu\n```\n\n- using GitHub *(требуется [git](https://git-scm.com/downloads))*\n```\n$ git clone https://github.com/BaggerFast/PyConsoleMenu\n$ cd PyConsoleMenu\n$ pip install -r requirements.txt\n```\n\n## Additionally ⌨️\n- Docs in code\n- Type hints\n\n\n## Usage example 👨‍💻\n\n```py\nfrom PyConsoleMenu import MultiSelectorMenu, FunctionalOption, SelectorMenu, FunctionalMenu\n\n\ndef multi_selector():\n    menu = MultiSelectorMenu(['Cheburashka', 'Parrot', 'Snake', 'Gena'], title='MultiSelector', count=3)\n    ans = menu.input()\n    print(ans)\n\n\ndef selector():\n    menu = SelectorMenu(['Cheburashka', 'Parrot', 'Snake', 'Gena'], title='Selector')\n    ans = menu.input()\n    print(ans)\n\n\ndef functional():\n    data = [\n        FunctionalOption('Cheburashka', lambda: print('I am a Parrot')),\n        FunctionalOption('Parrot', lambda: print('I am a Cheburashka')),\n    ]\n    menu = FunctionalMenu(data, title='Functional')\n    ans = menu.input()\n    ans()\n```\n*[See more examples](https://github.com/BaggerFast/PyConsoleMenu/tree/main/examples)*\n\n**Was written in these videos on YouTube 👀** \\\n[Video#1](https://www.youtube.com/watch?v=wgK90PIzlng\u0026t=118s) \\\n[Stream#1](https://www.youtube.com/watch?v=7eHcjkM-mTs\u0026t=6046s) \\\n[Stream#2](https://www.youtube.com/watch?v=ppZoCcmPhpc\u0026t=2941s)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaggerfast%2Fpyconsolemenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaggerfast%2Fpyconsolemenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaggerfast%2Fpyconsolemenu/lists"}