{ "info": { "author": "Frank Huang", "author_email": "me@nongraphical.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Choice, a Python dialog library\n================================\n\nchoice is a quick little library for getting user input in Python in a dialog-like fashion. Here's a little example:\n\n~~~\nimport choice\n\n# Get a yes or no response (default is no)\nconfirm = choice.Binary('Are you sure you want to delete?', False).ask()\nif confirm:\n deleteIt()\n\n# Input an arbitrary value, check for correctness\nhowmany = choice.Input('How many pies?', int).ask()\nprint(\"You ordered {} pies\".format(howmany))\n\n# Choose from a set of options\nentree = choice.Menu(['steak', 'potatoes', 'eggplant']).ask()\n~~~\n\nchoice automatically displays the best UI available to the user: basic text console, curses, or GUI windows. (curses and GUI are in development!)\n\nRequirements and Installation\n=============================\n\nFor basic functionality, `choice` has no external dependencies, and requires only:\n\n* Python 2.7 or 3\n\nTo install, just run:\n\n~~~\npip install choice\n~~~\n\nDocumentation\n=============\n\nAPI docs are coming soon. More in-depth documentation can be found on Github:\n\nhttps://github.com/fyhuang/choice/wiki\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fyhuang/choice", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "choice", "package_url": "https://pypi.org/project/choice/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/choice/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/fyhuang/choice" }, "release_url": "https://pypi.org/project/choice/0.1/", "requires_dist": null, "requires_python": null, "summary": "Easy request and response GUI for Python", "version": "0.1" }, "last_serial": 787380, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5ba5590d21452e21df9142ab7ab3c1f7", "sha256": "0d7dd85021e14626eef72f077b2c937e83d296adc0d7f2eede587e2cfaf71721" }, "downloads": -1, "filename": "choice-0.1.tar.gz", "has_sig": false, "md5_digest": "5ba5590d21452e21df9142ab7ab3c1f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3630, "upload_time": "2012-09-01T04:12:12", "url": "https://files.pythonhosted.org/packages/f6/3e/ccd75fb3109b3c441c04fa07bbb4afc39d1ecc5c6e35760aa6dd70a38dd9/choice-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ba5590d21452e21df9142ab7ab3c1f7", "sha256": "0d7dd85021e14626eef72f077b2c937e83d296adc0d7f2eede587e2cfaf71721" }, "downloads": -1, "filename": "choice-0.1.tar.gz", "has_sig": false, "md5_digest": "5ba5590d21452e21df9142ab7ab3c1f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3630, "upload_time": "2012-09-01T04:12:12", "url": "https://files.pythonhosted.org/packages/f6/3e/ccd75fb3109b3c441c04fa07bbb4afc39d1ecc5c6e35760aa6dd70a38dd9/choice-0.1.tar.gz" } ] }