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.2.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

rich_menu-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rich_menu-0.2.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.9 Linux/6.9.5-arch1-1

File hashes

Hashes for rich_menu-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c341d53d267aba0a67ae9e0f394205fbeb889f06fff7d8d08a928f0475f85f73
MD5 535efacbdea35289ebd1fa6b863c4a8a
BLAKE2b-256 1eef21a74b519e413744bc3cc47b593b7c7b2986eb04bab0583380a3488e94ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rich_menu-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.9 Linux/6.9.5-arch1-1

File hashes

Hashes for rich_menu-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40ec6340fe671695b40b9c2fdfe2f9f49a8c3b17f07a5e4981556d8bfa93aaea
MD5 ac3f69211cbb202e19ebfbf1ab688068
BLAKE2b-256 f6f94762a4c36e60af99faffe05e636a8641c3789cc4c11ea07a17872d24b19a

See more details on using hashes here.

Supported by

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