Prompt toolkit for console interaction
Project description
NonePrompt
Prompt toolkit for console interaction.
Typing is supported.
Installation
pip install noneprompt
Usage
Input
from noneprompt import InputPrompt
InputPrompt("What is your name?", validator=lambda string: True).prompt()
Confirm
from noneprompt import ConfirmPrompt
ConfirmPrompt("Are you sure?", default_choice=False).prompt()
List
from noneprompt import ListPrompt, Choice
ListPrompt("What is your favorite color?", choices=[Choice("Red"), Choice("Blue")]).prompt()
Checkbox
from noneprompt import CheckboxPrompt, Choice
CheckboxPrompt("Choose your favorite colors", choices=[Choice("Red"), Choice("Blue")]).prompt()
Try from command line
noneprompt -h
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
noneprompt-0.1.7.tar.gz
(9.4 kB
view hashes)
Built Distribution
noneprompt-0.1.7-py3-none-any.whl
(16.8 kB
view hashes)
Close
Hashes for noneprompt-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f45d86b147fafaefb7dd9ae6cdf06c9211c2fbe31193770153dc832573930296 |
|
MD5 | 55806c801aa57de13b9164495971839e |
|
BLAKE2b-256 | 723664a6143f859098e36214064aad264fe2b89bc720f55ece016891f3a78f51 |