Skip to main content

A terminal-based menu system using blessed and compatible with ANSI styling.

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.1.tar.gz (2.3 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.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for starri-1.1.tar.gz
Algorithm Hash digest
SHA256 cf51f881b06a17193832924e08e1915712b80a2e02eeb79b4e2a95b303fbc48a
MD5 d4df01357dbe98ba9dc6b6e1c035b1c8
BLAKE2b-256 4668462ba09bfcc9e9563083e2755f99984d6f75c95e9ecb577522a24e12c7bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49857e518f341ea4a581c7592100745c1175f3a566685d5bd2a004307cca20a2
MD5 391afc3dee5e398f15b9212df4732229
BLAKE2b-256 7383a951e7d7b016c0a0840526461441c502d15fc924cccb67e9ed8a0aa1c05b

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