A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pypi.python.org/pypi/questionary below:

questionary · PyPI

Project description Questionary

✨ 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()

questionary.select(
    "What do you want to do?",
    choices=["Order a pizza", "Make a reservation", "Ask for opening hours"],
).ask()

questionary.rawselect(
    "What do you want to do?",
    choices=["Order a pizza", "Make a reservation", "Ask for opening hours"],
).ask()

questionary.checkbox(
    "Select toppings", choices=["foo", "bar", "bazz"]
).ask()

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

Used and supported by

Features

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.

Installation

Use the package manager pip to install Questionary:

pip install questionary

✨🎂✨

Usage
import questionary

questionary.select(
    "What do you want to do?",
    choices=[
        '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

Documentation for Questionary is available here.

Support

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

Contributing

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.

License

Licensed under the MIT License. Copyright 2021 Tom Bocklisch.

Download files

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

Source Distribution Built Distribution File details

Details for the file questionary-2.1.0.tar.gz.

File metadata File hashes Hashes for questionary-2.1.0.tar.gz Algorithm Hash digest SHA256 6302cdd645b19667d8f6e6634774e9538bfcd1aad9be287e743d96cacaf95587 MD5 2760ffb01e33912b65f9826745aedf78 BLAKE2b-256 a8b8d16eb579277f3de9e56e5ad25280fab52fc5774117fb70362e8c2e016559

See more details on using hashes here.

File details

Details for the file questionary-2.1.0-py3-none-any.whl.

File metadata File hashes Hashes for questionary-2.1.0-py3-none-any.whl Algorithm Hash digest SHA256 44174d237b68bc828e4878c763a9ad6790ee61990e0ae72927694ead57bab8ec MD5 5c4a9137a26b6b628da37467330b9da9 BLAKE2b-256 ad3f11dd4cd4f39e05128bfd20138faea57bec56f9ffba6185d276e3107ba5b2

See more details on using hashes here.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4