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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.6.5.tar.gz
  • Upload date:
  • Size: 2.7 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.5.tar.gz
Algorithm Hash digest
SHA256 24068fcb072c58b640b8629f4d67b587843dd5edb729624a825378383a0558f8
MD5 d2702c2b3ac1ee951b556869b5a24086
BLAKE2b-256 681e5029f2a84467b851b5e8bfefa226237433ea7884f503ef33cd5365933480

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.6.5-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b07c23fab0b18a2bb91840019030439ee8c689816c25f106412615f4d6ce2a1c
MD5 ef4fce634f2cbb28d0b3f1b6899f46cc
BLAKE2b-256 16ace517f90fc7a80b87cd6053ce8e224ad978b51a2dc8d3e7c3e12a361a65b9

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