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.2.tar.gz (3.2 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.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_select-0.0.2.tar.gz
  • Upload date:
  • Size: 3.2 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.2.tar.gz
Algorithm Hash digest
SHA256 efe89b790cd9a1e3631e832763b69b852630b6c6008edffda6ac1d60338b7914
MD5 2a8d850df7231ce0fabb7987a514a02e
BLAKE2b-256 62e072d131523cd0b3a1fc6ff69329f571bba9baa8335e2c026c3a683ea8c405

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cli_select-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09d91d87a4c9ff95e06e0038923abe28c08266401281694e8ee5a0e5939bf0b0
MD5 9e63082a65518fa7e771c1987e641522
BLAKE2b-256 bd27471371bbcad73c88489ec4b898a4ba256f51d10e04043c44c69147294c46

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