All Projects → tmbo → Questionary

tmbo / Questionary

Licence: mit
Python library to build pretty command line user prompts ✨Easy to use multi-select lists, confirmations, free text prompts ...

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Questionary

Pdoc
🐍 ➡️ 📜 Auto-generate API documentation for Python projects
Stars: ✭ 604 (-1.63%)
Mutual labels:  hacktoberfest
Statsd exporter
StatsD to Prometheus metrics exporter
Stars: ✭ 608 (-0.98%)
Mutual labels:  hacktoberfest
Leku
🌍 Map location picker component for Android. Based on Google Maps. An alternative to Google Place Picker.
Stars: ✭ 612 (-0.33%)
Mutual labels:  hacktoberfest
Apiman
API Management
Stars: ✭ 606 (-1.3%)
Mutual labels:  hacktoberfest
Stylelint Order
A plugin pack of order related linting rules for stylelint.
Stars: ✭ 607 (-1.14%)
Mutual labels:  hacktoberfest
Druntime
Low level runtime library for the D programming language
Stars: ✭ 608 (-0.98%)
Mutual labels:  hacktoberfest
Awesome Oneliner Bugbounty
A collection of awesome one-liner scripts especially for bug bounty tips.
Stars: ✭ 594 (-3.26%)
Mutual labels:  hacktoberfest
Rendertron
A Headless Chrome rendering solution
Stars: ✭ 5,593 (+810.91%)
Mutual labels:  hacktoberfest
Python Escpos
Python library to manipulate ESC/POS printers
Stars: ✭ 607 (-1.14%)
Mutual labels:  hacktoberfest
Que
Simple Job Processing in Elixir with Mnesia ⚡️
Stars: ✭ 612 (-0.33%)
Mutual labels:  hacktoberfest
Teloxide
📮 An elegant Telegram bots framework for Rust
Stars: ✭ 604 (-1.63%)
Mutual labels:  hacktoberfest
Kiwi
the leading open source test management system
Stars: ✭ 607 (-1.14%)
Mutual labels:  hacktoberfest
Meshery
Meshery, the service mesh management plane
Stars: ✭ 608 (-0.98%)
Mutual labels:  hacktoberfest
Node Cobol
📺 COBOL bridge for NodeJS which allows you to run COBOL code from NodeJS.
Stars: ✭ 606 (-1.3%)
Mutual labels:  hacktoberfest
Lucid
AdonisJS official SQL ORM. Supports PostgreSQL, MySQL, MSSQL, Redshift, SQLite and many more
Stars: ✭ 613 (-0.16%)
Mutual labels:  hacktoberfest
Remove Bg
A Python API wrapper for removing background using remove.bg's API
Stars: ✭ 606 (-1.3%)
Mutual labels:  hacktoberfest
Syntax
A website for the Syntax Podcast
Stars: ✭ 610 (-0.65%)
Mutual labels:  hacktoberfest
Sentry Javascript
Official Sentry SDKs for JavaScript. We're hiring https://grnh.se/ca81c1701us
Stars: ✭ 6,012 (+879.15%)
Mutual labels:  hacktoberfest
Liferea
Liferea (Linux Feed Reader), a news reader for GTK/GNOME
Stars: ✭ 612 (-0.33%)
Mutual labels:  hacktoberfest
React Accessible Accordion
Accessible Accordion component for React
Stars: ✭ 610 (-0.65%)
Mutual labels:  hacktoberfest

Questionary

Version License Continuous Integration Coverage Supported Python Versions Documentation

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

Example

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 2020 Tom Bocklisch.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].