Skip to main content

A package that enables MCQ select in terminal

Project description

cli_select

A package that allows MCQ select in terminal/CLI

Installation

pip install cli_select

Quickstart

use Up and Down arrow keys to select your option use Enter key to confirm your selection

from cli_select import select

selected = select(
    "Which is your favourite fruit?", 
    ["apple", "orange", "pear", "pineaple", "durian"],
    color="green",
)

print(f"you selected {selected}")

# Select favourite fruit (Up/Down to navigate, Enter to select):

# => apple
# orange
# pear
# pineaple
# durian

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

cli_select-0.0.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cli_select-0.0.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file cli_select-0.0.3.tar.gz.

File metadata

  • Download URL: cli_select-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for cli_select-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bde867ccc9104280ff1e15ee2d0f2690da239a3bfc85498a61dee022339f5e05
MD5 922012075ebe0c4a469e174f3cf7e7f9
BLAKE2b-256 aea7294fc47a4f7640e1fdbad8bfc3e938b495c0ae5635771bed786ac6bd3ad8

See more details on using hashes here.

File details

Details for the file cli_select-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: cli_select-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for cli_select-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df16eb2504e3fc1b1885b4e526fea1f7aa63723a7087ec232d78e9d6612e0f0e
MD5 7686aced485367f8b5ca455033eefef1
BLAKE2b-256 77b29317a41dd544f5af3fcd5362de1b25db596d93bebd5af2fa77eae021ad95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page