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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.6.6.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.6.tar.gz
Algorithm Hash digest
SHA256 63c20bcfef16837f3ed027dd14c6d9d90300bc4c473b1d285dd15169f6404caa
MD5 a8641fdfeaa8da8d34403347b8eef290
BLAKE2b-256 ed4203975152bfce360c8c1f0b3c14953a46cf923e21a4f61994aa9e6e6b9678

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.6.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 14b59cc956b67591519bc09a85cb1fd75b6a82719c6923af361709eec190336b
MD5 1205b7ac793e40f697e3233209098ed0
BLAKE2b-256 45c94c305f749330dcde73cb367dd71bda8a161cf30724cafc4bd7f12310421d

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