Library for quick CLI user prompts, input, and menus.
Project description
Library for quick CLI user prompts, input, and menus.
Introduction
This project provides a Python 3.8+ 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.
Status
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.
Requirements
Qprompt should run on any Python 3.8+ interpreter and uses some third-party libraries.
Installation
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: pip install .
Documentation
The full documentation for this project can be found here on Read the Docs.
Roadmap
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.
Contributing
Contributions or feedback is welcome and encouraged!
A list of those who have helped with this project is available in the authors file.
Similar
The following projects are similar and may be worth checking out:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qprompt-0.16.4a2.tar.gz.
File metadata
- Download URL: qprompt-0.16.4a2.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36af423142a35b0844a255e6928648fb8eb009b2573da09660bf69cf4d75563d
|
|
| MD5 |
db4cf989331688c1146fcbc9b6a2fbf9
|
|
| BLAKE2b-256 |
f80a781f0e3e87049856b0df64077b2b82dd880f79f85c3a594c0434a47277f0
|
Provenance
The following attestation bundles were made for qprompt-0.16.4a2.tar.gz:
Publisher:
publish.yml on jeffrimko/Qprompt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qprompt-0.16.4a2.tar.gz -
Subject digest:
36af423142a35b0844a255e6928648fb8eb009b2573da09660bf69cf4d75563d - Sigstore transparency entry: 2083103061
- Sigstore integration time:
-
Permalink:
jeffrimko/Qprompt@0bb6468cf6586ae5ba01b56bed671d20a4eaf00b -
Branch / Tag:
refs/tags/qprompt-0.16.4 - Owner: https://github.com/jeffrimko
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0bb6468cf6586ae5ba01b56bed671d20a4eaf00b -
Trigger Event:
release
-
Statement type:
File details
Details for the file qprompt-0.16.4a2-py3-none-any.whl.
File metadata
- Download URL: qprompt-0.16.4a2-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc58ca2441a3bf180cdf9a888d934084a527fa902fb56cb5729f3cc496a43bf8
|
|
| MD5 |
9a2f5c003b8ca62dc9bf0beedeeb072c
|
|
| BLAKE2b-256 |
e09557bebef93ccdc15469ddf2dd8271a21d9d279d691e631f95548befbd4529
|
Provenance
The following attestation bundles were made for qprompt-0.16.4a2-py3-none-any.whl:
Publisher:
publish.yml on jeffrimko/Qprompt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qprompt-0.16.4a2-py3-none-any.whl -
Subject digest:
dc58ca2441a3bf180cdf9a888d934084a527fa902fb56cb5729f3cc496a43bf8 - Sigstore transparency entry: 2083103073
- Sigstore integration time:
-
Permalink:
jeffrimko/Qprompt@0bb6468cf6586ae5ba01b56bed671d20a4eaf00b -
Branch / Tag:
refs/tags/qprompt-0.16.4 - Owner: https://github.com/jeffrimko
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0bb6468cf6586ae5ba01b56bed671d20a4eaf00b -
Trigger Event:
release
-
Statement type: