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.5.2.tar.gz (2.3 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.5.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for starri-1.5.2.tar.gz
Algorithm Hash digest
SHA256 95b2fb0985c57422bba80a83f261dd731d5047e6955d04213494222ba19717d3
MD5 ed2fa2b569764da5173b322cfd878819
BLAKE2b-256 e45fc1d394d94f06c8fc7c73bc593cfdec1e9a53a7b3959d4ecea96ac89f0b44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 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.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab860515fb24f0563fd354b10c2bcd322f7efe17fc9cb5b4066d716acc9afb07
MD5 6387b3310883a0651dc00eb8381cc279
BLAKE2b-256 02cb4ea2fa1445ba4ddd18b18d3bab8be22cb032065a6cd2fe91a20c2474fa33

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