Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Prompt user for commandline input.

Project description



Prompt user for values on the command line.


  • Prompt bool from user. (prmt.confirm)
  • Prompt string from user. (prmt.string)
  • Prompt string from user, opening an editor window. (prmt.string_from_editor)
  • Prompt integer from user. (prmt.integer)
  • Prompt list of strings from user. (prmt.list_of_str)
  • Prompt user to select an item from a list/dict of items. (

Optional features:

  • Set default values.
  • Customize formatting for each prompt.
  • Customize formatting for all prompts via the prmt.Prompt() class.
  • Open default Text Editor for the user to enter text.
  • Blacklist values. (If the user enters blacklisted values she will be prompted again)


Python >=3.6


pip install prmt


pipenv install prmt


Look into the tests folder for code examples.

To see it in action on the command line, run:

pipenv run python test


git clone

cd prmt

pipenv install --dev --pre

pipenv run python --help

Project details

Download files

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

Files for prmt, version 4.0.1
Filename, size File type Python version Upload date Hashes
Filename, size prmt-4.0.1-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page