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.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

noneprompt-0.1.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: noneprompt-0.1.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.0-1074-azure

File hashes

Hashes for noneprompt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 813971dfcc0a2ef0900465e1ab04ffa97fe3ff907af8247969d138d722f4660d
MD5 98c7bd2c90cacac2a5efac0930c9a0ab
BLAKE2b-256 df5c01c145fd439d51f48f0b2eb7ef0c8e770c97128d3720e4658333337277cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: noneprompt-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.0-1074-azure

File hashes

Hashes for noneprompt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da0f7c4c19a18d68130cd19152799bf9372e97480e1c61e99499dd284b2a2d2c
MD5 7a2ff59404f75f140c0bf8c260323853
BLAKE2b-256 41d61d5c0dfadce4439ebd05ed9cff11ff426670c060d35a167b57904f251d16

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