This project provides a Python 2.7/3.3+ library that allows the user to quickly create CLI prompts for user input. The main features of Qprompt are:
Simple multi-entry menus.
Prompt for typed (integer/float/string) input.
Optional default values and validity checks.
Various CLI convenience functions.
User input can optionally be supplied from script command-line arguments allowing for simple automation.
Should work on any platform without additional dependencies.
Currently, this project is in the development release stage. While this project is suitable for use, please note that there may be incompatibilities in new releases.
Release notes are maintained in the project changelog.
Qprompt should run on any Python 2.7/3.3+ interpreter and uses some third-party libraries.
Qprompt is available on PyPI here and can be installed with pip using the following command:
pip install qprompt
Additionally, Qprompt can be installed from source by running:
python setup.py install
The full documentation for this project can be found here on Read the Docs.
The following potential updates are under consideration:
Accept multiple menu choices from user at once; e.g. space separated entries like
1 2 q.
Timeouts for prompt inputs; default value used if timed out.
Contributions or feedback is welcome and encouraged!
A list of those who have helped with this project is available in the authors file.