{"id":13501946,"url":"https://github.com/pmbarrett314/curses-menu","last_synced_at":"2025-03-29T10:32:30.553Z","repository":{"id":45942568,"uuid":"48145768","full_name":"pmbarrett314/curses-menu","owner":"pmbarrett314","description":"A simple console menu system in python using the curses library","archived":false,"fork":false,"pushed_at":"2024-11-27T17:03:01.000Z","size":847,"stargazers_count":480,"open_issues_count":11,"forks_count":52,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-29T03:16:46.659Z","etag":null,"topics":[],"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/pmbarrett314.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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}},"created_at":"2015-12-17T01:48:14.000Z","updated_at":"2025-03-28T22:58:32.000Z","dependencies_parsed_at":"2023-02-19T04:31:02.023Z","dependency_job_id":"48187e95-4e05-4a94-a7be-71956535cbe3","html_url":"https://github.com/pmbarrett314/curses-menu","commit_stats":{"total_commits":431,"total_committers":4,"mean_commits":107.75,"dds":"0.058004640371229654","last_synced_commit":"eccd784e24f92081446221b4a3f8132363949e12"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmbarrett314%2Fcurses-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmbarrett314%2Fcurses-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmbarrett314%2Fcurses-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmbarrett314%2Fcurses-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmbarrett314","download_url":"https://codeload.github.com/pmbarrett314/curses-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174074,"owners_count":20735406,"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-07-31T22:01:56.164Z","updated_at":"2025-03-29T10:32:30.247Z","avatar_url":"https://github.com/pmbarrett314.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"|Build Status|\\ |Documentation Status|\\ |Coverage Status|\n\ncurses-menu\n===========\n\nA simple Python menu-based GUI system on the terminal using curses.\nPerfect for those times when you need a GUI, but don’t want the overhead\nor learning curve of a full-fledged GUI framework. However, it's also\nflexible enough to do cool stuff like on-the-fly changing of menus and is extensible to\na large variety of uses.\n\nhttp://curses-menu.readthedocs.org/en/latest/\n\n.. image:: ./images/curses-menu_screenshot1.png\n\n\nInstallation\n~~~~~~~~~~~~\n\nTested on Python 3.8+ pypy and pypy3.\n\nThe curses library comes bundled with python on Linux and MacOS. Windows\nusers can visit http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses and\nget a third-party build for your platform and Python version.\n\nThen just run\n\n.. code:: shell\n\n   pip install curses-menu\n\nUsage\n-----\n\nIt’s designed to be pretty simple to use. Here’s an example\n\n.. code:: python\n\n    menu = CursesMenu(\"Root Menu\", \"Root Menu Subtitle\")\n    item1 = MenuItem(\"Basic item that does nothing\", menu)\n    function_item = FunctionItem(\"FunctionItem, get input\", input, [\"Enter an input: \"])\n    print(__file__)\n    command_item = CommandItem(\n        \"CommandItem that opens another menu\",\n        f\"python {__file__}\",\n    )\n\n    submenu = CursesMenu.make_selection_menu([f\"item{x}\" for x in range(1, 20)])\n    submenu_item = SubmenuItem(\"Long Selection SubMenu\", submenu=submenu, menu=menu)\n\n    submenu_2 = CursesMenu(\"Submenu Title\", \"Submenu subtitle\")\n    function_item_2 = FunctionItem(\"Fun item\", input, [\"Enter an input\"])\n    item2 = MenuItem(\"Another Item\")\n    submenu_2.items.append(function_item_2)\n    submenu_2.items.append(item2)\n    submenu_item_2 = SubmenuItem(\"Short Submenu\", submenu=submenu_2, menu=menu)\n\n    menu.items.append(item1)\n    menu.items.append(function_item)\n    menu.items.append(command_item)\n    menu.items.append(submenu_item)\n    menu.items.append(submenu_item_2)\n\n    menu.start()\n    _ = menu.join()\n\nTesting Information\n-------------------\n\nCurrently the platforms I'm manually testing on are MacOS in iTerm2 on zsh with and without TMUX and Windows 10\\\nwith both powersehll and cmd.exe in and out of Windows Terminal. If a bug pops up on another configuration, \\\nno promises that I'll be able to reproduce it.\n\n.. |Build Status| image:: https://github.com/pmbarrett314/curses-menu/actions/workflows/github-action-tox.yml/badge.svg\n   :target: https://github.com/pmbarrett314/curses-menu/actions/workflows/github-action-tox.yml/badge.svg\n.. |Documentation Status| image:: https://readthedocs.org/projects/curses-menu/badge/?version=latest\n   :target: http://curses-menu.readthedocs.org/en/latest/?badge=latest\n.. |Coverage Status| image:: https://coveralls.io/repos/github/pmbarrett314/curses-menu/badge.svg?branch=develop\n   :target: https://coveralls.io/github/pmbarrett314/curses-menu?branch=develop\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmbarrett314%2Fcurses-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmbarrett314%2Fcurses-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmbarrett314%2Fcurses-menu/lists"}