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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 c49e217e5b4653a255aeb5ea552d1b53739a03eda70e6f24786bbf1d19a6306e
MD5 58f45a08527c1043e91855e2bd68c283
BLAKE2b-256 2d3a367ed1c9dde4915afd04785dddfad75a06cf0bd31bd9c3ffe85853211701

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.0 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3889492912f0a534e32adc561e5ce0dd3c1dfecf57e70bbb6e63d08336107e95
MD5 0060ce8d4bbd799ce1c3d6a80ac9ba03
BLAKE2b-256 025c9a436cca7bb422ef44ef56d12e195b6fd85baeb4b921931b79bf253375dc

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