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.6.8.tar.gz (2.8 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.6.8-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for starri-1.6.8.tar.gz
Algorithm Hash digest
SHA256 9437a36d3060f6c0a884a8438b39e28af49b94aaf1a19dba7c0e69746eab81d6
MD5 f1c23bcc3f1464f8630018473210f3df
BLAKE2b-256 63608ccda26015839bf563723f3cf1805cf1bb945adb128440cbcbc5a2474a0d

See more details on using hashes here.

File details

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

File metadata

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

Hashes for starri-1.6.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f4e40b77e1e2f7d879af55dfd3f4e76c0c58cf4fb45e87694e1ce8d06690b90b
MD5 7a17bf839cead59b1b3193cdb6f06d41
BLAKE2b-256 c0d9ea7d233b007efc847e82a8f1d55d64138ce71c02b52c8cb9551d8541650a

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