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.3.tar.gz (2.6 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.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.6.3.tar.gz
  • Upload date:
  • Size: 2.6 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.3.tar.gz
Algorithm Hash digest
SHA256 e39f7df18501bfcd3ab664a22f5945f6bc1ddfda12f26282535e3f72f2f048d8
MD5 6dbaec6f4ad1761c1df396e136400830
BLAKE2b-256 398cc05bb572db5380a87adf2dc9e54f9058b1e9eceecbf7cc49268c120ecc2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6b5ecc7d124398d259fc5381b36f3c13ca5d66eec3d310b15d27df2c1520d5cd
MD5 7a388eba2ee9005b29de25e3e3ff1cb1
BLAKE2b-256 de8d5fb74be1341ee54a69a3fc10d16b4409bb395c7b49e09b91d0ef4ba48485

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