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.9.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.9-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.5.9.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.9.tar.gz
Algorithm Hash digest
SHA256 56c8496544e789b3dce1181297a4963a28060c7431e923b9f56752684080bb79
MD5 298695d90707ff6f03000090b1a0f93f
BLAKE2b-256 f28c97c49dbd4ee5e9c7040ea41f418fe616ba7202a29bd86d6703ee33444237

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.5.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5a55e014908b4d4725f263f23e8366a22227015fbb351fc040ee89ef0400e455
MD5 470dff60c3582030f6a9b7c8d884d38a
BLAKE2b-256 9269f20806b88188a1cb8c1c993047bb6193db5d42085f43284c36a702a7fd15

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