{ "info": { "author": "Josh Laughner (firsttempora)", "author_email": "first.tempora@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "# Python textui package\nText-based UI builder for Python\n\nFull documentation provided at https://firsttempora.github.io/Python-textui/\n\n## Quickstart\n\nInstall from `pip`: `pip install --user textui`\n\nThe `uielements` module contains individual `user_*` functions that can be \nused to interactively get values:\n\n```\nfrom textui import uielements\n\n>>> uielements.user_input_list('Choose your favorite fruit', ['Apple', 'Banana', 'Cherry'])\nChoose your favorite fruit\nA empty answer will cancel.\n 1: Apple 2: Banana 3: Cherry \nEnter 1-3: 2\n'Banana'\n\n>>> uielements.user_input_date('When did the Eagle land on the moon?')\nWhen did the Eagle land on the moon?\nEnter in one of the formats: yyyy-mm-dd\nEntering nothing will cancel\n--> 1969-07-20\ndatetime.datetime(1969, 7, 20, 0, 0)\n```\n\n`uielements` also contains a series of `opt_user_*` functions that will decide if the\nuser needed to be queried based on the given value, or check is the value is valid:\n\n```\n# If the value None is given, it is assumed \n# that the user need to provide a value\n>>> uielements.opt_user_input_list('Choose your favorite fruit', None, ['Apple', 'Banana', 'Cherry'])\nChoose your favorite fruit\nA empty answer will cancel.\n 1: Apple 2: Banana 3: Cherry \nEnter 1-3: 2\n'Banana'\n\n# If a non-None value is given, it is checked.\n# So long as it is valid, it is returned.\n>>> uielements.opt_user_input_list('Choose your favorite fruit', 'Apple', ['Apple', 'Banana', 'Cherry'])\n'Apple'\n\n# If not valid, an error is raised automatically\n>>> uielements.opt_user_input_list('Choose your favorite fruit', 'Watermelon', ['Apple', 'Banana', 'Cherry'])\nError thrown using UIErrorWrapper\nUIValueError: The value Watermelon is invalid. It must be one of: Apple, Banana, Cherry\n```\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/firsttempora/Python-textui/tarball/0.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/firsttempora/Python-textui", "keywords": "UI,user interface,text-based", "license": "", "maintainer": "", "maintainer_email": "", "name": "textui", "package_url": "https://pypi.org/project/textui/", "platform": "", "project_url": "https://pypi.org/project/textui/", "project_urls": { "Download": "https://github.com/firsttempora/Python-textui/tarball/0.2", "Homepage": "https://github.com/firsttempora/Python-textui" }, "release_url": "https://pypi.org/project/textui/0.2/", "requires_dist": [ "backports.shutil-get-terminal-size" ], "requires_python": "", "summary": "A text-based UI system", "version": "0.2" }, "last_serial": 4822292, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "e19cdeb59cfca0f85630038e332fe222", "sha256": "ed57c9b1309296c47d6a22fd3d273b84047d058fc470a5eea5474bd8689748d1" }, "downloads": -1, "filename": "textui-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e19cdeb59cfca0f85630038e332fe222", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19155, "upload_time": "2018-07-02T00:59:20", "url": "https://files.pythonhosted.org/packages/79/69/e354defd17f3c24ae802c5694618618a2a8a72af77711a473483cc28a480/textui-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63c107fdbc6f0e9aac357d9c6bc0793b", "sha256": "af8a647a6942f490f6118c5307739cbb01ee4f6de12a76946d23459b2d3d7d6d" }, "downloads": -1, "filename": "textui-0.2.tar.gz", "has_sig": false, "md5_digest": "63c107fdbc6f0e9aac357d9c6bc0793b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16661, "upload_time": "2018-07-02T00:59:21", "url": "https://files.pythonhosted.org/packages/c3/ac/2b90ed9668515fa176f2b2f97d99d8a266deb92051b98c19aeda5219c05c/textui-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e19cdeb59cfca0f85630038e332fe222", "sha256": "ed57c9b1309296c47d6a22fd3d273b84047d058fc470a5eea5474bd8689748d1" }, "downloads": -1, "filename": "textui-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e19cdeb59cfca0f85630038e332fe222", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 19155, "upload_time": "2018-07-02T00:59:20", "url": "https://files.pythonhosted.org/packages/79/69/e354defd17f3c24ae802c5694618618a2a8a72af77711a473483cc28a480/textui-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63c107fdbc6f0e9aac357d9c6bc0793b", "sha256": "af8a647a6942f490f6118c5307739cbb01ee4f6de12a76946d23459b2d3d7d6d" }, "downloads": -1, "filename": "textui-0.2.tar.gz", "has_sig": false, "md5_digest": "63c107fdbc6f0e9aac357d9c6bc0793b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16661, "upload_time": "2018-07-02T00:59:21", "url": "https://files.pythonhosted.org/packages/c3/ac/2b90ed9668515fa176f2b2f97d99d8a266deb92051b98c19aeda5219c05c/textui-0.2.tar.gz" } ] }