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")},
            {"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.0.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.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 056b8e2c5522c03263aecdbd59104e87c927c59ff0e9560f887f1cd79b02f0d2
MD5 edc37d79628cc160b6f5fac8cc799494
BLAKE2b-256 5cab8d5c776aedd1592ffddcdc587466271868ae60ffd87c9b799b320fc116ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 574d574cb5de7e2a8c8bcc4135134f70f38500272cc3fea150c55e9ea8df0f26
MD5 cd7a669ec97a4b756b0717f448fd9277
BLAKE2b-256 074f68e2e71304d1a8faa3b8afe7fe461865ae6c790a9e84b7c60f8883e27218

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