{ "info": { "author": "Sleft", "author_email": "fte08eas@student.lu.se", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: User Interfaces", "Topic :: System :: Shells" ], "description": "* [[https://github.com/Sleft/cliask][cliask]]\n\nA Python module for getting validated user input via the console which is meant to ease the process of building command line interfaces. Provides the function =ask= which will ask for input until a valid response is given. Also provides the function =agree= which will ask for input until the answer is yes or no. Both functions are similar to and inspired by the functions with the same name in the Ruby library [[http://highline.rubyforge.org/][HighLine]]. The following code gives a peek of how the functions can be used:\n#+BEGIN_EXAMPLE\nimport cliask\n\nanimal = cliask.ask('Cow or cat? ',\n validator=('cow', 'cat'),\n invalid_response='You must say cow or cat')\nyn = cliask.agree('Yes or no? ')\n\nprint(animal)\nprint(yn)\n#+END_EXAMPLE\n\n** Installation\n\nTo use cliask you need Python 3. The following describes two ways of installing. The first method requires that =git= is installed and the second does not. Either way the module has to be [[http://docs.python.org/3/tutorial/modules.html][imported]] for it to be used.\n\n*** pip\n\nMake sure you have =pip= installed then do the following:\n#+BEGIN_EXAMPLE\nsudo pip install cliask\n#+END_EXAMPLE\n\n*** Git\n\n=cd= to the directory you want to install in and do\n#+BEGIN_EXAMPLE\ngit clone https://github.com/Sleft/cliask.git .\n#+END_EXAMPLE\nto clone the git repository into that directory. You can use the same command if you want to update your installation.\n\n*** Archive\n\n[[https://github.com/Sleft/cliask/archive/master.zip][Download]] an archive and extract to the directory you want to install in.\n\n** Usage\n\nSee the documentation in [[https://github.com/Sleft/cliask/blob/master/cliask.py][cliask.py]], especially the documention for =cliask.ask= and the example of usage in =cliask._test=. Run cliask.py, =python cliask.py=, to try the example of usage.\n\n** Credits\n\nThe code in the module was first posted as [[http://stackoverflow.com/a/14977144][an answer]] to [[http://stackoverflow.com/q/14962930][a question]].\n\n** License\n\nSee [[https://github.com/Sleft/yasnippet-latex-mode/blob/master/LICENSE.org][LICENSE.org]].", "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/Sleft/cliask", "keywords": null, "license": "LICENSE.org", "maintainer": null, "maintainer_email": null, "name": "cliask", "package_url": "https://pypi.org/project/cliask/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cliask/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Sleft/cliask" }, "release_url": "https://pypi.org/project/cliask/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "A module for getting validated user input via the console", "version": "0.0.4" }, "last_serial": 787461, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "20f6e4fbf8e3fb9a16d57d84dd51f59a", "sha256": "68125a034fe7f889a6fe559359ca95c5a94f8afa30ef63cec2674f4d267a5bb0" }, "downloads": -1, "filename": "cliask-0.0.4.tar.gz", "has_sig": false, "md5_digest": "20f6e4fbf8e3fb9a16d57d84dd51f59a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3273, "upload_time": "2013-04-09T17:41:53", "url": "https://files.pythonhosted.org/packages/65/a4/d01c7db887921710114dd5e8b4ef645ffb6ab5ac0aac2170819e21fa9575/cliask-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "20f6e4fbf8e3fb9a16d57d84dd51f59a", "sha256": "68125a034fe7f889a6fe559359ca95c5a94f8afa30ef63cec2674f4d267a5bb0" }, "downloads": -1, "filename": "cliask-0.0.4.tar.gz", "has_sig": false, "md5_digest": "20f6e4fbf8e3fb9a16d57d84dd51f59a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3273, "upload_time": "2013-04-09T17:41:53", "url": "https://files.pythonhosted.org/packages/65/a4/d01c7db887921710114dd5e8b4ef645ffb6ab5ac0aac2170819e21fa9575/cliask-0.0.4.tar.gz" } ] }