Skip to main content

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


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 details)

Uploaded Source

Built Distribution

noneprompt-0.1.7-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file noneprompt-0.1.7.tar.gz.

File metadata

  • Download URL: noneprompt-0.1.7.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.6 Linux/5.15.0-1024-azure

File hashes

Hashes for noneprompt-0.1.7.tar.gz
Algorithm Hash digest
SHA256 f21a6473ae02dec301e7b591ff5799c15b6ef0206f0eef3a0da510cea9cabdbf
MD5 ccc2941839c9d29fb1dc1e71dd4c350f
BLAKE2b-256 53a1eaaf9eeac551c9bf535f91d6143af475f0c195241487ee483648cc164de5

See more details on using hashes here.

File details

Details for the file noneprompt-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: noneprompt-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.6 Linux/5.15.0-1024-azure

File hashes

Hashes for noneprompt-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f45d86b147fafaefb7dd9ae6cdf06c9211c2fbe31193770153dc832573930296
MD5 55806c801aa57de13b9164495971839e
BLAKE2b-256 723664a6143f859098e36214064aad264fe2b89bc720f55ece016891f3a78f51

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page