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.4.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.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_select-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 8ad782a82c07ea284873810bf55d73c21d3c761aa89067ca3c06390cac004449
MD5 6effdda4ea79740d85fb155fa91c4b49
BLAKE2b-256 425ab3a702110eac387041eada62c34d015e3a56be080bebf5760e46ef2158a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cli_select-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 39bce1e7a35520026f1290f3897409aae853700e6c88164fccad880585549768
MD5 7b11ea3db6bae11ce32a8f1a9eea18a0
BLAKE2b-256 5634caece61ba072389a29046fc67018deeceaed04a55c23f575d35e19791a73

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