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.7.tar.gz
(2.6 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.7.tar.gz.
File metadata
- Download URL: starri-1.5.7.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6dc1760c20ccf3164cfc51185d1035df770abdc30606cc915e8a9910f416f54
|
|
| MD5 |
bd02b7111350be9f29a3bcedc007adfa
|
|
| BLAKE2b-256 |
3599783245ddc594a525f96b82eeb9731f5e69850a2924ee8cc5eeee1e1ded36
|
File details
Details for the file starri-1.5.7-py3-none-any.whl.
File metadata
- Download URL: starri-1.5.7-py3-none-any.whl
- Upload date:
- Size: 2.8 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 |
6b805baeeb342e2a5061c20fbaca1fdd349e946b1926fcb9ecdca313a386d6b8
|
|
| MD5 |
15c003bf4531bb9e8c0b1e8632207ded
|
|
| BLAKE2b-256 |
bac4846b9927f298b83822a8614c905ec81cd64f2e04ae80e2e2e4926f242685
|