Library for prompting input on the command line.
Project description
Python Prompt Package
The project was initiated by Stefan Fischer.
Documentation is available on PythonHosted.
Questions can be asked via e-mail.
Changes between releases are documented.
Source code is tracked on GitHub.
Bugs can be reported on the issue tracker.
Install
The package is available on PyPI:
$ pip install prompt
Use
An extensive documentation is available.
Some simple use cases:
import prompt email = prompt.email() # modify default prompt integer = prompt.integer(prompt="Please enter a number: ") # allow empty response real = prompt.real(empty=True) # require a two digit number using a regular expression regex = prompt.regex("^\d\d$")
Contribute
License
History
Next Release
Added
Changed
Deprecated
Fixed
Removed
Security
0.4.1 - 2017-06-05
Changed
improved infrastructure
0.4.0 - 2016-03-22
Removed
support for Python 3.2
0.3.2 - 2016-03-22
Added
unit tests
coverage testing
0.3.1 - 2015-10-10
Fixed
display of README on PyPI
0.3.0 - 2015-10-10
Added
module documentation
documentation on PythonHosted
0.2.0 - 2015-09-27
Added
prompt.email()
prompt.secret()
0.1.0 - 2015-09-16
Added
minimum viable product
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file prompt-0.4.1.tar.gz
.
File metadata
- Download URL: prompt-0.4.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a7694b88f8c65188a983315e72582bf42fcc251b97042be1d2a2ad1aa0ebe0e |
|
MD5 | 081725bc760c08cb19af53b9a963cb3d |
|
BLAKE2b-256 | a6f1f550fffbdbe3ca55591d2c34f7d561ee8126a2e4f0b402a84860a31a5f68 |
File details
Details for the file prompt-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: prompt-0.4.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98527de8dc3f0aa29669a39fbffeaf578ba6654dc836f737b6a5c6f9279002b7 |
|
MD5 | ac1363a8948a910098defec93f29dc4a |
|
BLAKE2b-256 | de2abaf04fe6bef0b73666fd891db1c395813ee9691f949ae4b42500dc440adb |