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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.6.9.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.9.tar.gz
Algorithm Hash digest
SHA256 c55c6ae078a985da4023175c8356c7bc51b5a6e079a8272a4d63274ee34dd0cd
MD5 e981478e61a219e48f6b41b8faf3b070
BLAKE2b-256 31bdff14f312f1d5cb588ca793137ae361bd045d266fe4f951a863cff74ab7c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.6.9-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.6.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f6993edc78939700eb9258fca1d1d03981f8d31246332c3521cc5c648c1f4b93
MD5 1a30f5d34ede359fa9e501f09bc010f1
BLAKE2b-256 cb1403a074b6947b5367d5349630038169e2cdbe1b08a560edbbc62be92948b0

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