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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.6.1.tar.gz
  • Upload date:
  • Size: 2.8 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.1.tar.gz
Algorithm Hash digest
SHA256 7a2fcb7fd59b134188186af659566354e82bed3f828b22fd1dc7993a2f28e547
MD5 8a204642793cba8b6cb052a6a1fdf45d
BLAKE2b-256 e63d32f58aeac68f6d696ba756e65dcca487c3e984ff2717eaf8e5457ffb41c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.6.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c023abbe6707daf38939419f73c133143f229bb8067e2315f28cad02a365732a
MD5 f68b5c071c0509bc0728e426afd8c42d
BLAKE2b-256 d39daca33381717ded536d7200132685a32cb01556fc84b96383ad00fc2ad4d9

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