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.6.7.tar.gz
(2.8 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.6.7.tar.gz.
File metadata
- Download URL: starri-1.6.7.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ef86cbe4dc37f09f4ad344bf429543b2c90a42745b9210261b7eee9ff2af78e
|
|
| MD5 |
6758e63088acddbcc1e5c104e477b68b
|
|
| BLAKE2b-256 |
60a377650d9da8bda68e0ad8325cd28b257634620c70d30a80d46edf99f09a5b
|
File details
Details for the file starri-1.6.7-py3-none-any.whl.
File metadata
- Download URL: starri-1.6.7-py3-none-any.whl
- Upload date:
- Size: 3.0 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 |
582d6f9beca8f7d540baee4bec6e85d6fdc600b03bf102059c8716f9261a1442
|
|
| MD5 |
f6646bd6e0cc7e3d72bf8f77962c79f9
|
|
| BLAKE2b-256 |
134bfae4273d84584c2bbf7af050a160a0f347f3287ea9c736f3556f9846ae7f
|