Skip to main content

No project description provided

Project description

Rich Menu

Rich menu is a library that allows the quick and simple creation of cli menus, using Rich as a backend.

Installation

Installation is very simple, just run the following command in the terminal:

pip install rich-menu

Basic Usage

from rich_menu import Menu

menu = Menu(
    "Option 1",
    "Option 2",
    "Option 3",
    "Exit",
)
match menu.ask():
    case "Option 1":
        print("first option selected")
    case "Option 2":
        print("second option selected")
    case "Option 3":
        print("third option selected")
    case "Exit":
        exit()
from rich_menu import Menu

menu = Menu(
    "X",
    "O",
    color="blue",
    rule_title="Tic Tac Toe",
    align="center",
    panel_title="Choose your icon",
    selection_char="->",
)
selected = menu.ask(screen=False)

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

rich_menu-0.3.0.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.

rich_menu-0.3.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file rich_menu-0.3.0.tar.gz.

File metadata

  • Download URL: rich_menu-0.3.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Linux/6.12.38-1-lts

File hashes

Hashes for rich_menu-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0493057793061f753ff33a892f53c5b389832d420b723e9d03e230a238a904a3
MD5 1eea68f620a30cb74adfed8ca69551c2
BLAKE2b-256 f1861b16eacaa286494c3ab9b914596ae09e2822cb16eb6a6f0be5bbb09d320c

See more details on using hashes here.

File details

Details for the file rich_menu-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: rich_menu-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Linux/6.12.38-1-lts

File hashes

Hashes for rich_menu-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ceb85765ab42751c6339938bd2bc00234bc93f376f5e3d139c1d94583a2b3eb
MD5 84755ac79a65e7a7c7ba9e7da776e3fb
BLAKE2b-256 e4b4d8a9e849ebb0bc1e31e20977bbe472ee299d3fad31001984d3cce7abf0bf

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