{ "info": { "author": "Dylan Richardson", "author_email": "dylanrichardson1996@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Menu\n\nEasily create command-line menus.\n\n## Install\n\n pip install Menu\n\n**Note:** Use with Python 2 requires the [future](https://pypi.org/project/future/) package to be installed.\n\n## Create the Menu\n\nThe Menu constructor arguments are all optional. The arguments are options, title, message, prompt, and refresh. Options is a list of tuples consisting of a name and a handler. Refresh is a handler called before showing the menu.\n\n Menu() # empty menu, will close upon opening\n Menu(options=[(\"Option Name\", optionHandler)]) # customize the options\n Menu(options=[(\"Option Name\", optionHandler, {'key': val})]) # add kwargs to option handlers\n Menu(title=\"Menu title\") # customize the title\n Menu(message=\"Message text\") # customize the message, disabled by default\n Menu(prompt=\">\") # customize the user input prompt\n Menu(refresh=refreshHandler) # customize the refresh handler\n\n## Open the Menu\n\n menu = Menu()\n menu.open()\n\n## Close the Menu\n\nfrom the instance after creating the menu\n\n menu = Menu()\n menu.close()\n\nor use the static method before creating the menu\n\n Menu(options = [(\"Close\", Menu.CLOSE)])\n\n## Edit the menu\n\n menu = Menu()\n menu.set_options([(\"new option name\", newOptionHandler)])\n menu.set_title(\"new title\")\n menu.set_message(\"new message\")\n menu.set_prompt(\"new prompt\")\n\n## Create a Submenu\n\n main = Menu(title = \"Main Menu\")\n sub = Menu(title = \"Submenu\")\n main.set_options([\n (\"Open submenu\", sub.open),\n (\"Close main menu\", main.close)\n ])\n sub.set_options([\n (\"Return to main menu\", sub.close)\n ])\n main.open()\n\n## Example\n\n[example.py](test/example.py)\n\n## Development\n\nSymlink package to immediately see changes locally\n\n $ pip install -e .\n\nRun the tests\n\n $ python test/tests.py\n\nBuild\n\n $ python setup.py sdist\n\n**Note:** Might need to login first with `python setup.py register`\n\nPublish to PyPI\n\n $ twine upload dist/*", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/drich14/Menu/", "keywords": "", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "Menu", "package_url": "https://pypi.org/project/Menu/", "platform": "", "project_url": "https://pypi.org/project/Menu/", "project_urls": { "Homepage": "https://github.com/drich14/Menu/" }, "release_url": "https://pypi.org/project/Menu/3.2.2/", "requires_dist": null, "requires_python": "", "summary": "Easily create command-line menus", "version": "3.2.2" }, "last_serial": 5372607, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "00af9831b97051ebc37217de86613e00", "sha256": "ba25f6c0b9c1b96d8313a485ec3087d69e57c853aaeffdc9904977c757a60e99" }, "downloads": -1, "filename": "Menu-1.0.tar.gz", "has_sig": false, "md5_digest": "00af9831b97051ebc37217de86613e00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2051, "upload_time": "2014-08-08T20:50:38", "url": "https://files.pythonhosted.org/packages/b8/94/943bfd6ac9409100c36b39f6aca0abe55bf80aa3191fc1a0d4ebf0ba5bec/Menu-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "1a14a9dd9a9c34d0c761af7f06e8dc82", "sha256": "e03eee084f13a605f8cc713c71b34ba638e10cd5aaadd28f01637a7cb2ee80ba" }, "downloads": -1, "filename": "Menu-1.1.tar.gz", "has_sig": false, "md5_digest": "1a14a9dd9a9c34d0c761af7f06e8dc82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2083, "upload_time": "2014-08-08T20:53:21", "url": "https://files.pythonhosted.org/packages/89/3c/6bcb964d2cd0d687d270e4a6ca3530b022948dee0fe28fea945d9b7c6c07/Menu-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "fa47e65b26b31b326ef918a740d49167", "sha256": "5f896f83f6c057a2311dc701acf4a5d2d8a58cbd729238acebaa5ef16f30cc49" }, "downloads": -1, "filename": "Menu-1.2.tar.gz", "has_sig": false, "md5_digest": "fa47e65b26b31b326ef918a740d49167", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2088, "upload_time": "2014-08-08T20:57:36", "url": "https://files.pythonhosted.org/packages/26/df/34ae39d155e5a45a6f831eadc19c7df0e32d3e8b3eeed182e134abaf71a8/Menu-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "fd1ca76038dd94ff44b5489f9dcb24a2", "sha256": "55fd8531e3d5eba63c750f2471cb07048c6c473743f47f7cd176d691d290b2df" }, "downloads": -1, "filename": "Menu-1.3.tar.gz", "has_sig": false, "md5_digest": "fd1ca76038dd94ff44b5489f9dcb24a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2070, "upload_time": "2014-08-08T21:19:38", "url": "https://files.pythonhosted.org/packages/a9/0a/4c655af269a2f70fddbf19bd122094f4be24d7375210b64cc59ef54ca0eb/Menu-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "27f1bba44770114ce7977de9a26efbf8", "sha256": "ae81f22f7b29fb65168b82d7f89ac5fd4a0cf8772b2de5d1ef0971ef979a842f" }, "downloads": -1, "filename": "Menu-1.4.tar.gz", "has_sig": false, "md5_digest": "27f1bba44770114ce7977de9a26efbf8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2074, "upload_time": "2014-08-09T02:36:51", "url": "https://files.pythonhosted.org/packages/cb/88/ac0a619d73603b04d1cff34e9f8256ccda5b1e0caff9d18235651106a9e7/Menu-1.4.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "935dfe995af2353492c9910ae8ebb768", "sha256": "069fac25e864d5da080e9a4049acc2ed4a16b9c2e4651ac8a31d5ef2b3516bfa" }, "downloads": -1, "filename": "Menu-2.0.tar.gz", "has_sig": false, "md5_digest": "935dfe995af2353492c9910ae8ebb768", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2102, "upload_time": "2015-11-04T15:01:14", "url": "https://files.pythonhosted.org/packages/a1/6d/6b5536cbb88c914e1d175081111e57fa10ce5149afc019654450b2796051/Menu-2.0.tar.gz" } ], "3.0": [ { "comment_text": "", "digests": { "md5": "f3a401ca57c0ff1954fe9ce0c0333b4a", "sha256": "011f1268e58fdd3daf575a76057a483f54e5e9200f89e5e75841af06bd54fd46" }, "downloads": -1, "filename": "Menu-3.0.tar.gz", "has_sig": false, "md5_digest": "f3a401ca57c0ff1954fe9ce0c0333b4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2350, "upload_time": "2017-05-04T01:42:27", "url": "https://files.pythonhosted.org/packages/6e/1b/dc2b9ecdeee498719e4d5836f07ae24124ac71feb8f388931ab7397fe7f1/Menu-3.0.tar.gz" } ], "3.0.1": [ { "comment_text": "", "digests": { "md5": "ff60bce3738cdb39d23d7be6ab257ed7", "sha256": "c59256c13abca5372334d10bda0d794cdd5d31a0d53245a8ae03294f497b5832" }, "downloads": -1, "filename": "Menu-3.0.1.tar.gz", "has_sig": false, "md5_digest": "ff60bce3738cdb39d23d7be6ab257ed7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2245, "upload_time": "2017-05-04T02:03:17", "url": "https://files.pythonhosted.org/packages/e6/fc/ca2e1f03b917d237505987ba96cf18eb4383066f9b28a20e55cd32d34625/Menu-3.0.1.tar.gz" } ], "3.0.2": [ { "comment_text": "", "digests": { "md5": "5bf32294ee91b3ed701fd3cf5d4f13b5", "sha256": "e516f4b690e3c74251141f895f40aeb7954ec8f653d706443db1b310e939a563" }, "downloads": -1, "filename": "Menu-3.0.2.tar.gz", "has_sig": false, "md5_digest": "5bf32294ee91b3ed701fd3cf5d4f13b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2839, "upload_time": "2017-05-04T02:18:40", "url": "https://files.pythonhosted.org/packages/37/94/2a28da2cfca234ffd09d7cec427eab58e723fcccffab5647db981f88a5c3/Menu-3.0.2.tar.gz" } ], "3.0.3": [ { "comment_text": "", "digests": { "md5": "b5a82f36315ce1da8ea94db7bec20760", "sha256": "f0cc2000e55c18ceb0c7a86ad6d5570df35cba0f92a69c86da6890fb1a0a8c74" }, "downloads": -1, "filename": "Menu-3.0.3.tar.gz", "has_sig": false, "md5_digest": "b5a82f36315ce1da8ea94db7bec20760", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2862, "upload_time": "2017-05-04T02:21:33", "url": "https://files.pythonhosted.org/packages/90/ba/45b7bc4d92f0eaeb8cd54a3d8123d635d8fbca5b9d74140ff08ed970341a/Menu-3.0.3.tar.gz" } ], "3.1.0": [ { "comment_text": "", "digests": { "md5": "606e276c9893dc96c7419530ae820fff", "sha256": "991d206fc269e571a11a9c3fe2e84939b7421f8e48318b6613c62695923881c6" }, "downloads": -1, "filename": "Menu-3.1.0.tar.gz", "has_sig": false, "md5_digest": "606e276c9893dc96c7419530ae820fff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2905, "upload_time": "2017-05-19T14:12:21", "url": "https://files.pythonhosted.org/packages/f1/e9/0823257b66942dafc3efb735faef027c249a43e4abf91e8a0a581ce081a2/Menu-3.1.0.tar.gz" } ], "3.2.0": [ { "comment_text": "", "digests": { "md5": "95018ca7ac0354e11c84c96feac6dee4", "sha256": "be5b62d9b811b66db8252ba3eca6b4b02e03253d6b6d9b4eaea23d81502c0c0f" }, "downloads": -1, "filename": "Menu-3.2.0.tar.gz", "has_sig": false, "md5_digest": "95018ca7ac0354e11c84c96feac6dee4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3263, "upload_time": "2018-10-22T02:19:41", "url": "https://files.pythonhosted.org/packages/6a/0a/8e6f74cd640ba5ad2ed6a1720493f4d6933d7ac3635dbbc94b5f4d5fce14/Menu-3.2.0.tar.gz" } ], "3.2.1": [ { "comment_text": "", "digests": { "md5": "0aced541f78351fe0280809471bb6fa1", "sha256": "ecc59cc086ffdd0b7b24d5ff032dfe124262e7c9a034646b0e934afa2ca6af66" }, "downloads": -1, "filename": "Menu-3.2.1.tar.gz", "has_sig": false, "md5_digest": "0aced541f78351fe0280809471bb6fa1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3574, "upload_time": "2019-06-07T18:07:16", "url": "https://files.pythonhosted.org/packages/c5/f7/a197fc31e8e9331127e12a5e7964d85ca80948aa7d7608edcee47d6c6495/Menu-3.2.1.tar.gz" } ], "3.2.2": [ { "comment_text": "", "digests": { "md5": "e6b9df1edba4fce0f414a2a704e882dc", "sha256": "8143eeec772937d4adc80b5a451f827da3dcdc9b2a1f850b4734e5d5e50d3dc4" }, "downloads": -1, "filename": "Menu-3.2.2.tar.gz", "has_sig": false, "md5_digest": "e6b9df1edba4fce0f414a2a704e882dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3595, "upload_time": "2019-06-07T18:12:37", "url": "https://files.pythonhosted.org/packages/a1/57/66755041c5fa34386869bb4dda9d79938ef1b06b57360c2e0ccbb81d5b27/Menu-3.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e6b9df1edba4fce0f414a2a704e882dc", "sha256": "8143eeec772937d4adc80b5a451f827da3dcdc9b2a1f850b4734e5d5e50d3dc4" }, "downloads": -1, "filename": "Menu-3.2.2.tar.gz", "has_sig": false, "md5_digest": "e6b9df1edba4fce0f414a2a704e882dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3595, "upload_time": "2019-06-07T18:12:37", "url": "https://files.pythonhosted.org/packages/a1/57/66755041c5fa34386869bb4dda9d79938ef1b06b57360c2e0ccbb81d5b27/Menu-3.2.2.tar.gz" } ] }