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.1.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.7.1.tar.gz.
File metadata
- Download URL: starri-1.7.1.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 |
fadaace13bef43f88d66cc3c88869a4e214f9d4fc00c54df6c28ba1fe6cf100f
|
|
| MD5 |
b7223f785405cb691fe0ea5e8ce25d02
|
|
| BLAKE2b-256 |
bff373e9b37ddb9b561484b6fd6798b23f0e33c6e3fb3fd1208630a5f0c609b9
|
File details
Details for the file starri-1.7.1-py3-none-any.whl.
File metadata
- Download URL: starri-1.7.1-py3-none-any.whl
- Upload date:
- Size: 3.1 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 |
4d1bbf7d83290c36638d7c31fefac6688a5ac51ed63474a5dfbb619ea9343421
|
|
| MD5 |
74cf5dbcfe0f7492d5521e75d1df56f0
|
|
| BLAKE2b-256 |
6f147d5e7969e97580fbf92f3ce45c1a9bb3f3dac737c0e6a11dc4d5f541fcaf
|