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.4.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.4-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file qprompt-0.16.4.tar.gz.

File metadata

  • Download URL: qprompt-0.16.4.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.4.tar.gz
Algorithm Hash digest
SHA256 60353acef34c80557cb3fe7c04fbe0e9ea0b343cb65ecf24b62397a0872a1f31
MD5 298d4ac9bbefa09279e3898cb51f6343
BLAKE2b-256 e49bb089860309e6c60f4c9d735beee3713b00af8fb58ae2890a4b38cca7772a

See more details on using hashes here.

Provenance

The following attestation bundles were made for qprompt-0.16.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: qprompt-0.16.4-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c4559ed6872b55609752085b101fee0e1f9e8c19dbff5d693ca385a78c4b3c50
MD5 ec2511e1781b2c9eae57ae0f5d1af07e
BLAKE2b-256 96286f8749129373c18c515e9e12f3527616c094d22821a1d16ed7d4f7ba1f33

See more details on using hashes here.

Provenance

The following attestation bundles were made for qprompt-0.16.4-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