Skip to main content

click-prompt provides more beautiful interactive options for the Python click library

Project description

click-prompt

Supported Python Versions PyPI version

click-prompt provides more beautiful interactive options for the Python click library. The library is inspired by a post on stackoverflow.com

Usage

import click
from click_prompt import ChoiceOption

@click.command()
@click.option('--fruit', 
              type=click.Choice(['Apples', 'Bananas', 'Grapefruits', 'Mangoes']),
              cls=ChoiceOption)
def select_fruit(fruit: str):
    print(choice)

Available Parameters

for every click.Option there is also a click.Argument implementation

  • ChoiceOption: Select a single item out of a list
  • MultipleOption: Select multiple items out of a list
  • ConfirmOption: Yes/No confirmation
  • FilePathOption: Select a file path with auto completion
  • AutoCompleteOption: Auto completion given a list

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

click-prompt-0.2.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

click_prompt-0.2.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file click-prompt-0.2.1.tar.gz.

File metadata

  • Download URL: click-prompt-0.2.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.2 Linux/5.10.0-16-amd64

File hashes

Hashes for click-prompt-0.2.1.tar.gz
Algorithm Hash digest
SHA256 edc17fde4d494111f3a73900e59eb69f7cbe1e8a5f2ff3862b66e939eefc8bb4
MD5 981506b7188e16afb0ef037d6a61c267
BLAKE2b-256 2cfe4caa9af1d4256e680c836d653dc9791f100edadbb67172e97aa45561329b

See more details on using hashes here.

Provenance

File details

Details for the file click_prompt-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: click_prompt-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.2 Linux/5.10.0-16-amd64

File hashes

Hashes for click_prompt-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 983dc9478285d151a7149276ba9dc2cfb0127cdb11c55ca7b64828a7b3a7c32a
MD5 4f43d4274d540f08d9fb7a337941c8c8
BLAKE2b-256 558e0c3d4aa11ec135e5262600caf690e79e25bfa16eed62ddd57663b94e2558

See more details on using hashes here.

Provenance

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