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

Uploaded Source

Built Distribution

noneprompt-0.1.4-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: noneprompt-0.1.4.tar.gz
  • Upload date:
  • Size: 9.4 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.4.tar.gz
Algorithm Hash digest
SHA256 de31010f992e2790ee6d8d4ad1bae0826bd1701ca9257356a716b8cc7b633028
MD5 2d68d8479db7b54905f056bf367b80ea
BLAKE2b-256 3b24cd7227369f2ee1a76785777d40fcd9e460728dd01352a4c0af68fe488c9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: noneprompt-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 16.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0c2c568e52067d9cf28bbc0b9b84cbcac02859a1de01e2b9ae5ce759a7eb1b21
MD5 837afe92bbaf5f047c08de19b99f4749
BLAKE2b-256 6a163ea7df8255ac5779cc216ec5f3c36069bb383d268ab2d2203adcfd7ba572

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