questionary-cli
Command line tool for questionary.
Features
- Command line utility for questionary
- All question types and prompts supported
- Output as JSON or plain text
- Chain multiple questions
Installation
$ pip install questionary-cli
Usage
To be documented.
CLI Reference
$ que --help
Usage: que [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
Command line utility for questionary.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ --json -j Output results in JSON format. │
│ --plain -p Output results in plain text, one value per line. │
│ --file -f FILE Output results to file instead of stdout. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────╮
│ autocomplete Autocomplete text prompt. │
│ checkbox Multi-select checkbox prompt. │
│ confirm Confirmation prompt. │
│ password Password prompt. │
│ path Filesystem path prompt. │
│ print Print formatted text. │
│ rawselect Raw select option prompt. │
│ select Select option prompt. │
│ text Text prompt. │
│ wait Wait until any key is pressed. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Text
$ que text --help
Usage: que text [OPTIONS]
Text prompt.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --prompt -p TEXT Prompt text to be displayed. [required] │
│ * --key,--as -k TEXT Question key to be used in output. [required] │
│ --default -d TEXT Default value if no text is entered. [default: ""] │
│ --instruction -i TEXT Instruction displayed to the user. [default: ""] │
│ --multiline -m Allow multiline text to be entered. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Password
$ que password --help
Usage: que password [OPTIONS]
Password prompt.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --prompt -p TEXT Prompt text to be displayed. [required] │
│ * --key,--as -k TEXT Question key to be used in output. [required] │
│ --default -d TEXT Default value if no text is entered. [default: ""] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Path
$ que path --help
Usage: que path [OPTIONS]
Filesystem path prompt.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --prompt -p TEXT Prompt text to be displayed. [required] │
│ * --key,--as -k TEXT Question key to be used in output. [required] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Confirm
$ que confirm --help
Usage: que confirm [OPTIONS]
Confirmation prompt.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --prompt -p TEXT Prompt text to be displayed. [required] │
│ --key,--as -k TEXT Question key to be used in output. │
│ --default -d Default value if no text is entered. │
│ [default: False] │
│ --instruction -i TEXT Instruction displayed to the user. [default: ""] │
│ --auto-enter -a No need to press Enter after "y" or "n" is pressed. │
│ --exit-code -e Exit with code 1 if "n" is entered. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Select
$ que select --help
Usage: que select [OPTIONS]
Select option prompt.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --prompt -p TEXT Prompt text to be displayed. [required] │
│ * --key,--as -k TEXT Question key to be used in output. [required] │
│ * --choices -c TEXT Choices as JSON encoded list of strings. [required] │
│ --default -d TEXT Default value if no text is entered. │
│ --instruction -i TEXT Instruction displayed to the user. [default: ""] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Raw Select
$ que rawselect --help
Usage: que rawselect [OPTIONS]
Raw select option prompt.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --prompt -p TEXT Prompt text to be displayed. [required] │
│ * --key,--as -k TEXT Question key to be used in output. [required] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Checkbox
$ que checkbox --help
Usage: que checkbox [OPTIONS]
Multi-select checkbox prompt.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --prompt -p TEXT Prompt text to be displayed. [required] │
│ * --key,--as -k TEXT Question key to be used in output. [required] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Autocomplete
$ que autocomplete --help
Usage: que autocomplete [OPTIONS]
Autocomplete text prompt.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --prompt -p TEXT Prompt text to be displayed. [required] │
│ * --key,--as -k TEXT Question key to be used in output. [required] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Press Any Key To Continue...
$ que wait --help
Usage: que wait [OPTIONS]
Wait until any key is pressed.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --prompt -p TEXT Prompt text to be displayed. │
│ [default: Press any key to continue...] │
│ [required] │
│ --append -a When option is set, append " press any key to │
│ continue..." to the prompt. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
$ que print --help
Usage: que print [OPTIONS]
Print formatted text.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ * --text -t TEXT Text to be printed. [required] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Contributing
Pull requests, feature requests, and bug reports are welcome!
Authors
- Michael Makukha
See also
Metadata
Release files for questionary-cli 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| questionary_cli-0.1.2.tar.gz | 7.9 kB | Without provenance | Details for questionary_cli-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| questionary_cli-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for questionary_cli-0.1.2-py3-none-any.whl |
Total release size: 15.5 kB
Release files / questionary_cli-0.1.2.tar.gz
| Download URL | questionary_cli-0.1.2.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70809707b8f98dc629b30308851be2d1452d3b70b5925ade3207f2b4b79db151
|
|
BLAKE2b-256 checksum How to use checksums |
8260dacab075f837a391a3e4750b05ca72cba3e69ccc9c36c50db3f634b9e5f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Release files / questionary_cli-0.1.2-py3-none-any.whl
| Download URL | questionary_cli-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6aa6c2e714e936b0c4bde1786482e3bd7d41ea9f8c24720f011c74306390654e
|
|
BLAKE2b-256 checksum How to use checksums |
76ea3693cc8157d9ddfc7f2c5c71b88403c5a3f133d8a2285674b887f34b8ab1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Security for questionary-cli 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.