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

Uploaded Source

Built Distribution

noneprompt-0.1.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: noneprompt-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 06dd79eebe4a6e44aa854a33912af641abef0014efd5966f021277f0f686e6e8
MD5 10c4da21604f25eba1655be851ad84fd
BLAKE2b-256 e4670c339220529b46d517d25b716ff9001b6045b2d8cdbe48c478b057451995

See more details on using hashes here.

File details

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

File metadata

  • Download URL: noneprompt-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c0da7ca7c69953f65e134d3067bc255ddd487097656b80e39cb1f61db17d3e0
MD5 fc3869f1a28aaefe327369a48c04d90f
BLAKE2b-256 1c483102eb972734b2b3d05737b7342d417a2eb5122f79f642a2746c399bfa58

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