Prompt and verify user input on the command line.
Python 3.3+ and Wheels are supported.
Python 3.3+ 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.
The package is available on PyPI:
$ pip install prompt
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$")
Write a bug report or send a pull request.
Other contributors have done so before.
Other contributors have done so before.
Copyright (c) 2015-2017 Stefan Fischer
The source code is available under the MIT License.
See LICENSE for further details.
The source code is available under the MIT License.
See LICENSE for further details.