This is a library for prompting input on the command line.
Project description
Prompt and verify user input on the command line.
Python 3.2+ and Wheels are supported.
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
Write a bug report or send a pull request.
Other
contributors
have done so before.
License
Copyright (c) 2015 Stefan Fischer
The source code is available under the MIT License.
See
LICENSE
for further details.
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
prompt-0.3.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
prompt-0.3.1-py3-none-any.whl
(6.3 kB
view hashes)