Skip to main content

A terminal-based menu system using blessed and compatible with ANSI styling.

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")},
            {"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-0.3.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

starri-0.3-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-0.3.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for starri-0.3.tar.gz
Algorithm Hash digest
SHA256 6c6ed7104eabdb68d76b8c86f23c4a06fcf8802821eb6f337f978b6b387a0b72
MD5 5e4355b3239663cd3d8067f0d5489a69
BLAKE2b-256 95292a35095ba31e4160740e4b8d1df5dd9d36b1efbc87ad02b690e20e56bbeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for starri-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3cef40399c6497dcfe2023a2e38725210491ca23d9489417438101964ecb8b0e
MD5 c8b969fb2d5d04ad07b256de2ee24577
BLAKE2b-256 4ca523f2c8751bc89ad833e52c704ba0f60a8f3229d5d82697d90c0bf1319bf0

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