{ "info": { "author": "THIVOLLE-CAZAT cedric", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "License :: OSI Approved :: BSD License" ], "description": "

Create Menu like this

\n\n
from askcli import Menu, Item\nitems = list()\n# create items list\nitems = [Item('a', 'Action A'), Item('b', 'Action B'), 'action 3', Item('q', 'Quitter')]\n\nm = Menu(items)\n# print and wait keypress\nm.launch()\n\nprint('_______')\nprint(\"you choose {0} : {1}\".format(m.choose, m.get_choosen_text()))\n
\n\nrender\n\n
  a - Action a\n  b - Action b\n  3 - action 3\n  q - Quitter\n? input : f\n X - error key, (unavailable)\n? input : q\n_______\ntoy choose menu q : Quitter\n
\n\n

Yes/No questions

\n
from askcli.ask_bool import AskBool\na = AskBool('valid',t_text=\"Yes\",f_text=\"No\",required=True)\nres = a.launch(err_mess=\"choose [yes] or [no]\")\nprint('_____')\nprint(\"bool: {0}. choice {1}\".format(res, a.get_text()))\n
\n\nrender\n\n
\n ? Confirmer [o/N] : yes\n x choose [yes] or [no]\n ? Confirmer [o/N] : oui\n_____\nbool: True. choix Oui\n
\n\n

\n\t\"AskCli_img\"
\n\tgithub project\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/thivolle-cazat-cedric/py-askcli/tree/1.0.0/askcli", "keywords": "scipting menu yes/no question", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "askcli", "package_url": "https://pypi.org/project/askcli/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/askcli/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/thivolle-cazat-cedric/py-askcli/tree/1.0.0/askcli" }, "release_url": "https://pypi.org/project/askcli/1.0.4/", "requires_dist": null, "requires_python": null, "summary": "Generate interactive menus in a python script. Like yes/no question and menu action.", "version": "1.0.4" }, "last_serial": 1667163, "releases": { "0.1.0": [], "1.0.0": [], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3a9d5832b8d27431663a7de310ce7a39", "sha256": "9f3ed215240c13eef4ca4c07990d90a28ed331cdc6b14dfc90d1f412e9bc718e" }, "downloads": -1, "filename": "askcli-1.0.1.tar.gz", "has_sig": false, "md5_digest": "3a9d5832b8d27431663a7de310ce7a39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7520, "upload_time": "2015-08-06T16:22:53", "url": "https://files.pythonhosted.org/packages/8a/de/98f88a87e0e80ba16e1b41a98eac04b69d1bc9ad94c10bad207193bec60a/askcli-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "edb94444ac83132336bb08a77448b2bb", "sha256": "15ad4b915cedba314132cbb5ad6266eadaf8015fb4368b6b8b19a3261794ca0a" }, "downloads": -1, "filename": "askcli-1.0.2.tar.gz", "has_sig": false, "md5_digest": "edb94444ac83132336bb08a77448b2bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7522, "upload_time": "2015-08-06T16:25:40", "url": "https://files.pythonhosted.org/packages/5b/bf/aae9767de81811c48d178c5b85e1ad09785dbd2244dddbb9e019ea124678/askcli-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "4b5fd606d8d82e191b7c3cbca031e05b", "sha256": "1100ef140889d9f3924f2c2b37e4eee30a66b99c38c46b19905d065a947e541b" }, "downloads": -1, "filename": "askcli-1.0.3.tar.gz", "has_sig": false, "md5_digest": "4b5fd606d8d82e191b7c3cbca031e05b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7521, "upload_time": "2015-08-06T16:26:33", "url": "https://files.pythonhosted.org/packages/01/4b/74a95d22eda6184ebcf417e8051a7baff935e6337e46228061db3baea0b2/askcli-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "25be66c0e598ebc84841d9ef3a8fd0ca", "sha256": "2186371a9151f4bd229f8789f648a0bc6939b05681c42a44387b4aff4695a0cc" }, "downloads": -1, "filename": "askcli-1.0.4.tar.gz", "has_sig": false, "md5_digest": "25be66c0e598ebc84841d9ef3a8fd0ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6832, "upload_time": "2015-08-06T16:36:13", "url": "https://files.pythonhosted.org/packages/04/d1/8ece7e3596f5984fb0e9f43be1151a339cead4576e20ecc504fb010af423/askcli-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "25be66c0e598ebc84841d9ef3a8fd0ca", "sha256": "2186371a9151f4bd229f8789f648a0bc6939b05681c42a44387b4aff4695a0cc" }, "downloads": -1, "filename": "askcli-1.0.4.tar.gz", "has_sig": false, "md5_digest": "25be66c0e598ebc84841d9ef3a8fd0ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6832, "upload_time": "2015-08-06T16:36:13", "url": "https://files.pythonhosted.org/packages/04/d1/8ece7e3596f5984fb0e9f43be1151a339cead4576e20ecc504fb010af423/askcli-1.0.4.tar.gz" } ] }