{ "info": { "author": "Paul Barrett", "author_email": "pmbarrett314@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "|Build Status|\\ |Documentation 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\u2019t 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 2.7, 3.3, 3.4, and 3.5, as well as pypy and pypy 3. Probably works on 2.6 as well.\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\u2019s designed to be pretty simple to use. Here\u2019s an example\n\n.. code:: python\n\n # Import the necessary packages\n from cursesmenu import *\n from cursesmenu.items import *\n\n # Create the menu\n menu = CursesMenu(\"Title\", \"Subtitle\")\n\n # Create some items\n\n # MenuItem is the base class for all items, it doesn't do anything when selected\n menu_item = MenuItem(\"Menu Item\")\n\n # A FunctionItem runs a Python function when selected\n function_item = FunctionItem(\"Call a Python function\", input, [\"Enter an input\"])\n\n # A CommandItem runs a console command\n command_item = CommandItem(\"Run a console command\", \"touch hello.txt\")\n\n # A SelectionMenu constructs a menu from a list of strings\n selection_menu = SelectionMenu([\"item1\", \"item2\", \"item3\"])\n\n # A SubmenuItem lets you add a menu (the selection_menu above, for example)\n # as a submenu of another menu\n submenu_item = SubmenuItem(\"Submenu item\", selection_menu, menu)\n\n # Once we're done creating them, we just add the items to the menu\n menu.append_item(menu_item)\n menu.append_item(function_item)\n menu.append_item(command_item)\n menu.append_item(submenu_item)\n\n # Finally, we call show to show the menu and allow the user to interact\n menu.show()\n\n.. |Build Status| image:: https://travis-ci.org/pmbarrett314/curses-menu.svg\n :target: https://travis-ci.org/pmbarrett314/curses-menu\n.. |Documentation Status| image:: https://readthedocs.org/projects/curses-menu/badge/?version=latest\n :target: http://curses-menu.readthedocs.org/en/latest/?badge=latest", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/pmbarrett314/curses-menu", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "curses-menu", "package_url": "https://pypi.org/project/curses-menu/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/curses-menu/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/pmbarrett314/curses-menu" }, "release_url": "https://pypi.org/project/curses-menu/0.5.0/", "requires_dist": null, "requires_python": null, "summary": "A simple console menu system using curses", "version": "0.5.0" }, "last_serial": 1988906, "releases": { "0.4.0": [ { "comment_text": "", "digests": { "md5": "63ea496637effb8b0cab4c99e106540b", "sha256": "7f499a640ce689374611d1e46be6c2409131c136685b9ced2ee19a06ce3be9cc" }, "downloads": -1, "filename": "curses-menu-0.4.0.zip", "has_sig": false, "md5_digest": "63ea496637effb8b0cab4c99e106540b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36723, "upload_time": "2016-02-14T00:44:56", "url": "https://files.pythonhosted.org/packages/2e/92/cf73474837e2364b37762c4eb58f56a4c2d9ad3589c80029903abfeb2cb8/curses-menu-0.4.0.zip" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "96cd658bb1a892bb9ae00d8e438bd895", "sha256": "2cf6d48ee7be10feec5b5fd7fb00487b46f0f19e79f74679a84ca40018d50ffd" }, "downloads": -1, "filename": "curses-menu-0.4.1.zip", "has_sig": false, "md5_digest": "96cd658bb1a892bb9ae00d8e438bd895", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36775, "upload_time": "2016-02-17T20:39:31", "url": "https://files.pythonhosted.org/packages/62/0b/41c2a61b79c48ec2b8504e9ac642acfc6a9c96ffc3c3947b21535f0d663c/curses-menu-0.4.1.zip" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "2415e53e7834dba1c97ac1e3839e45eb", "sha256": "29c45e2f16283833e2940fac0fd64e948f2ff603d3e11f510c5bd2b946cd8981" }, "downloads": -1, "filename": "curses-menu-0.5.0.zip", "has_sig": false, "md5_digest": "2415e53e7834dba1c97ac1e3839e45eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37303, "upload_time": "2016-03-04T06:21:13", "url": "https://files.pythonhosted.org/packages/3b/7d/82f1492afd33f92e64d44d51f65eff4c39382642cfced65d5748a770bb8f/curses-menu-0.5.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2415e53e7834dba1c97ac1e3839e45eb", "sha256": "29c45e2f16283833e2940fac0fd64e948f2ff603d3e11f510c5bd2b946cd8981" }, "downloads": -1, "filename": "curses-menu-0.5.0.zip", "has_sig": false, "md5_digest": "2415e53e7834dba1c97ac1e3839e45eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37303, "upload_time": "2016-03-04T06:21:13", "url": "https://files.pythonhosted.org/packages/3b/7d/82f1492afd33f92e64d44d51f65eff4c39382642cfced65d5748a770bb8f/curses-menu-0.5.0.zip" } ] }