Simple CUI input prompt
Project description
Simple CUI prompt input for Python
Installing
Install the latest stable from PyPi:
pip install prompter
Install the latest development version from master:
pip install git+git://github.com/tylerdave/prompter
Using
>>> from prompter import prompt, yesno >>> prompt('What is your name?') What is your name? > Dave 'Dave' >>> prompt('What is your name?', default='Dave') What is your name? [Dave] > 'Dave' >>> prompt('Enter text surrounded by spaces:', strip=False) Enter text surrounded by spaces: > text ' text ' >>> yesno('Really?') Really? [Y/n] True >>> yesno('Really?') Really? [Y/n] no False >>> yesno('Really?', default='no') Really? [y/N] True >>> yesno('Really?', default='no') Really? [y/N] y False >>> yesno('') [Y/n] No False
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prompter-0.3.2.tar.gz
(2.8 kB
view details)
File details
Details for the file prompter-0.3.2.tar.gz
.
File metadata
- Download URL: prompter-0.3.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c8307b94e7377dad4be4da0779bd0fe8ce6ef5a47541eeb007f489117bbd26d |
|
MD5 | d7b820bf60f0a80bea3ab7fb77077c9b |
|
BLAKE2b-256 | 3fb7da2db33de11bed5f450ead4f82904b9245184e699eb761942caeb4d4b8ef |