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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: noneprompt-0.1.3.tar.gz
  • Upload date:
  • Size: 9.3 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.3.tar.gz
Algorithm Hash digest
SHA256 4bd5520517d6639bab007c11cdcaa228b53833374f1c6525f7b6a27f4d978a05
MD5 9b951ee584491e51309d200d1ad0afe8
BLAKE2b-256 74f8fe4bb71d1422f27d1a3de755eb0f548a17a2eef959bb1db2ed0254ba3d46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: noneprompt-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d496bb123e3b5660c6b8b72844752534ca1867d8e9f5ee1e16e546b81ee7ca36
MD5 57ebf7f8c3e8e23b9975a97d0058addf
BLAKE2b-256 f25643f9a27fc973df4e364a018edbd479ce822606904544c2de182e6f0e56fa

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