Skip to main content

Terminal Menu using Python

from terminal_menu import menu
user_choice: str = menu(
    static_menu_text="Please choose an annoying little dog:",
    choices=("Chihuahua", "Pomeranian", "Jack Russell"),
)
print(f"user chose '{user_choice}'")

I wanted a simple OS-agnostic interface for creating menus in my python command-line applications (using only the python standard library).

I could not find one that I liked, so I built this one.

It is not truly operating system agnostic since it uses the curses python library, which will not work on a Windows terminal. It works on WSL though.

Metadata

Release files for terminal-menu 0.0.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 terminal-menu 0.0.0
File Size Uploaded
terminal-menu-0.0.0.tar.gz 39.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for terminal-menu 0.0.0
File Interpreter ABI Platform
terminal_menu-0.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 67.3 kB

Release files / terminal-menu-0.0.0.tar.gz

Download URL terminal-menu-0.0.0.tar.gz
Size 39.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b3286e7b1dfbe1c79f5faf612e3d6815e0690115cc7ea574a2a4e36de91ad263
BLAKE2b-256 checksum
How to use checksums
58402c1e59a1af908411bead28fbbe69cf4601d3ae3e82ad6f9bfc5f92f560bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release files / terminal_menu-0.0.0-py3-none-any.whl

Download URL terminal_menu-0.0.0-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17c8e774fdf0f9c9c74b95274890c6921e556afba2d6d9c61fbff4670e7125db
BLAKE2b-256 checksum
How to use checksums
40cc2a53a84335fd5e3a1702bfb3903b32a2c3df2423123397c43c6943ef1485
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.0 This release

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