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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-1.6.4.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.4.tar.gz
Algorithm Hash digest
SHA256 34c01c25da82a5031a2aa4584c74e032f4a13536fe6755ed0e9d08ce0414136a
MD5 1f6af3429d2d6e5d042f575980f5658c
BLAKE2b-256 22fea8fb865315cd0afe864a0e209dd7dbb0f56aa5f331f2938556305f206937

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.6.4-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 efb68a2c00659ce68049ee8f544942ec29c77e9d3cce29007114274636128d29
MD5 830fb70275bb80891f8a237ab07efb9c
BLAKE2b-256 4a8a8106e9e7f12c13605f33599cbd8168b15f46627cd99af055d9f2d06e2748

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