A terminal-based menu system using blessed.
Project description
Starri
Starri is a simple Python library for creating terminal-based menus. It supports navigation with the arrow keys and submenus for a dynamic user experience.
Installation
You can install Starri with pip:
pip install starri
Usage
Here's how to use Starri:
from starri import *
def main():
starri(
title = "Title",
choices = [
{"label": "Option 1", "onselect": lambda: print("Option 1 selected")},
{"type": "spacer"},
{"label": "Option 2", "onselect": lambda: print("Option 2 selected")},
{"label": "Exit", "onselect": exit}
]
)
if __name__ == "__main__":
main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
starri-1.5.4.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file starri-1.5.4.tar.gz.
File metadata
- Download URL: starri-1.5.4.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00b22ca944ade121150b9f0295d3227874c00ad91c8882232183e87e556f3a3f
|
|
| MD5 |
969d3eb58b2aaabde315d206ee4ae760
|
|
| BLAKE2b-256 |
e2995d384e430d174758aa6d8d9ab376e8586a167d3ca76544b8b5bddff91c8a
|
File details
Details for the file starri-1.5.4-py3-none-any.whl.
File metadata
- Download URL: starri-1.5.4-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
785bd8f51ef4272234132bb6cfb8709e18c268822c2842fca70ed990824a2257
|
|
| MD5 |
81995456370414a9e8ced96ddd343514
|
|
| BLAKE2b-256 |
db7f59f4553b9a7a349a1c33da84b73f1d32ea8ad7d2d5242bbaf48885022ddd
|