Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Simple CUI input prompt

Project description

Simple CUI prompt input for Python


Install the latest stable from PyPi:

pip install prompter

Install the latest development version from master:

pip install git+git://


>>> from prompter import prompt, yesno

>>> prompt('What is your name?')
What is your name? Dave

>>> prompt('What is your name?', default='Jenn')
What is your name? [Jenn]

>>> prompt('What is your name?', default='Jenn', suffix='\n > ')
What is your name? [Jenn]

>>> prompt('Enter text surrounded by spaces.', strip=False)
Enter text surrounded by spaces.    text
'   text   '

>>> yesno('Really?')
Really? [Y/n]

>>> yesno('Really?')
Really? [Y/n] no

>>> yesno('Really?', default='no')
Really? [y/N]

>>> yesno('')
[Y/n] n


Please open an issue on Github if you notice problems or have suggestions!

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 prompter, version 0.3.10
Filename, size File type Python version Upload date Hashes
Filename, size prompter-0.3.10-py2.py3-none-any.whl (7.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size prompter-0.3.10.tar.gz (19.1 kB) File type Source Python version None 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