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.7.3.tar.gz
(3.0 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.7.3.tar.gz.
File metadata
- Download URL: starri-1.7.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65f290f2b0e39d5bb1c0162a03a50db71b95a6dbe1bfe27e1d2e58e1f564e1ef
|
|
| MD5 |
501062db828e0fee7be737ad40de09d6
|
|
| BLAKE2b-256 |
58944bf65c147a21a1bc44516dc4ea6832278f3a1c086421382af2383248cbc8
|
File details
Details for the file starri-1.7.3-py3-none-any.whl.
File metadata
- Download URL: starri-1.7.3-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edeb79c9544ac7b3468a820c1cdfc6792007aad462bd5d57701e10b1550fd674
|
|
| MD5 |
5606f75a66e905bc8d39f73725201855
|
|
| BLAKE2b-256 |
4599c838f283c828473f5d4c6ba0e5199bc8a75b234b1e21ca118100f745da68
|