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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.5.3.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.5.3.tar.gz
Algorithm Hash digest
SHA256 29b3eb9855ca9f21d81e5eae2192b8389ba107b4d4fd0d9f76f3f07da641741d
MD5 876c8c731f8020da5fa134dc92d1e052
BLAKE2b-256 cdf56c40003739cac8aa83c6c3164554104541adc1f8321c6a8c4726b11cde80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.5.3-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.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0c3e72bf1f116a5b95d9d31ac5a9af79e93d31a5c18ff91b5e3a2fe425499679
MD5 96c561551b2dbfe35f83181164b4eba1
BLAKE2b-256 fe94c1737e682b3e8fb71c906d7948076dd65ef6eaf89006fd0a8083352723bf

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