Skip to main content

Library for quick CLI user prompts, input, and menus.

Project description

Qprompt

License Build Status Documentation Status

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.

Demo

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qprompt-0.16.4a2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qprompt-0.16.4a2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

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

Hashes for qprompt-0.16.4a2.tar.gz
Algorithm Hash digest
SHA256 36af423142a35b0844a255e6928648fb8eb009b2573da09660bf69cf4d75563d
MD5 db4cf989331688c1146fcbc9b6a2fbf9
BLAKE2b-256 f80a781f0e3e87049856b0df64077b2b82dd880f79f85c3a594c0434a47277f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for qprompt-0.16.4a2.tar.gz:

Publisher: publish.yml on jeffrimko/Qprompt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for qprompt-0.16.4a2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc58ca2441a3bf180cdf9a888d934084a527fa902fb56cb5729f3cc496a43bf8
MD5 9a2f5c003b8ca62dc9bf0beedeeb072c
BLAKE2b-256 e09557bebef93ccdc15469ddf2dd8271a21d9d279d691e631f95548befbd4529

See more details on using hashes here.

Provenance

The following attestation bundles were made for qprompt-0.16.4a2-py3-none-any.whl:

Publisher: publish.yml on jeffrimko/Qprompt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page