Skip to main content

Python library to build pretty command line user prompts ⭐️

Project description


Version License Continuous Integration Coverage Supported Python Versions Documentation

✨ Questionary is a Python library for effortlessly building pretty command line interfaces ✨


import questionary

questionary.text("What's your first name").ask()
questionary.password("What's your secret?").ask()
questionary.confirm("Are you amazed?").ask()
    "What do you want to do?",
    choices=["Order a pizza", "Make a reservation", "Ask for opening hours"],

    "What do you want to do?",
    choices=["Order a pizza", "Make a reservation", "Ask for opening hours"],

    "Select toppings", choices=["foo", "bar", "bazz"]

questionary.path("Path to the projects version file").ask()

Used and supported by


Questionary supports the following input prompts:

There is also a helper to print formatted text for when you want to spice up your printed messages a bit.


Use the package manager pip to install Questionary:

$ pip install questionary


import questionary
    "What do you want to do?",
        'Order a pizza',
        'Make a reservation',
        'Ask for opening hours'
    ]).ask()  # returns value of selection

That's all it takes to create a prompt! Have a look at the documentation for some more examples.


Documentation for Questionary is available here.


Please open an issue with enough information for us to reproduce your problem. A minimal, reproducible example would be very helpful.


Contributions are very much welcomed and appreciated. Head over to the documentation on how to contribute.

Authors and Acknowledgment

Questionary is written and maintained by Tom Bocklisch and Kian Cross.

It is based on the great work by Oyetoke Toby and Mark Fink.


Licensed under the MIT License. Copyright 2020 Tom Bocklisch.

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 questionary, version 1.9.0
Filename, size File type Python version Upload date Hashes
Filename, size questionary-1.9.0-py3-none-any.whl (32.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size questionary-1.9.0.tar.gz (22.8 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