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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cli_select-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 591e9b0e46035dcad76302efa7d1f0bba9cbcacc56a123e684887f4721f5ba09
MD5 0a5f029ac3cd18a285acb4e27e4727e3
BLAKE2b-256 59fb329bf2d1aeae5a68c97b675521af125e60b5587c0608d18d2d25a5fac602

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cli_select-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b87b45a35119bba33d1023c3f61b60d8be47c4abe552339cafbfeff40f15ab24
MD5 eca154deaede44577b0e16c95ffe7a1b
BLAKE2b-256 5ee3cc847ae46c801e0091e17124d30e6c9aeb79936fffb4755ef124ae1d4898

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