Skip to main content

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)

Release files for rich-menu 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rich-menu 0.3.0
File Size Uploaded
rich_menu-0.3.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rich-menu 0.3.0
File Interpreter ABI Platform
rich_menu-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / rich_menu-0.3.0.tar.gz

Download URL rich_menu-0.3.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0493057793061f753ff33a892f53c5b389832d420b723e9d03e230a238a904a3
BLAKE2b-256 checksum
How to use checksums
f1861b16eacaa286494c3ab9b914596ae09e2822cb16eb6a6f0be5bbb09d320c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.5 Linux/6.12.38-1-lts

Release files / rich_menu-0.3.0-py3-none-any.whl

Download URL rich_menu-0.3.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ceb85765ab42751c6339938bd2bc00234bc93f376f5e3d139c1d94583a2b3eb
BLAKE2b-256 checksum
How to use checksums
e4b4d8a9e849ebb0bc1e31e20977bbe472ee299d3fad31001984d3cce7abf0bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.5 Linux/6.12.38-1-lts

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page