Skip to main content

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


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.8.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

starri-1.5.8-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file starri-1.5.8.tar.gz.

File metadata

  • Download URL: starri-1.5.8.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

Hashes for starri-1.5.8.tar.gz
Algorithm Hash digest
SHA256 b034e8a2a2828f25ab2c537daa0415ce852dffda7f89a3791c46cc526e8a2317
MD5 82674b72a350e427a14dde5a72cb2bb1
BLAKE2b-256 e35433b856781b4f643ec9ce1120f7455f808bcaf7a04934419a5cefead74150

See more details on using hashes here.

File details

Details for the file starri-1.5.8-py3-none-any.whl.

File metadata

  • Download URL: starri-1.5.8-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

Hashes for starri-1.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d9aa6e57bf056069d983e170788f28c5f77fe05c5da1ed5d478cd1337932bbb7
MD5 3f3e1a20f63e64f217fabc3966009ce8
BLAKE2b-256 1f8e87a3808c034a61aedfb195a4ce4f6b9ec9ce2a5635fa83b6138bd951d4a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page