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.2.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.2.tar.gz.
File metadata
- Download URL: starri-1.7.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
195d9a5cc4c0022a79f08841ccd331beb35aa029c423b3caf508aff912cfff84
|
|
| MD5 |
42fa8fbd23d42e624612f8d98db19e46
|
|
| BLAKE2b-256 |
e607ef2cbb411fb056f7fdc083592f13ad1ae1b1bd7ff514fbb5992356dd0d4c
|
File details
Details for the file starri-1.7.2-py3-none-any.whl.
File metadata
- Download URL: starri-1.7.2-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.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
008c0e5811310472e3e91918b7dea72913ab28716d1f37df478d9974d12fc747
|
|
| MD5 |
007a73c3bf181c3d06a5fc8e4b4c441f
|
|
| BLAKE2b-256 |
53cee803d802cda2aeba8793c79120876f23d5e154e3a45433b527e3fba3788d
|