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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.5.5.tar.gz
  • Upload date:
  • Size: 2.5 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.5.tar.gz
Algorithm Hash digest
SHA256 0fb8aa8c367839cd60deba9a6b97435f3ccec25a4497c4c1435f550194ef1664
MD5 f27de89747e6bb90e6bfc03a43511bc9
BLAKE2b-256 996c3311379d4be63ca0ac54035bdaa549c7fc1592f369126fc272f025c3a815

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.5.5-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.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9899f99053b7739b45782bbe3de9aca2e7fb635ff0e54962b0962302c0ae4524
MD5 d8313301b9a2cec0947324f379919169
BLAKE2b-256 35b2035908dc3181993984d8d7913d845dbaa545a418d2272a0672b533e6cd50

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