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

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-0.3.4.tar.gz
  • Upload date:
  • Size: 2.2 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.4.tar.gz
Algorithm Hash digest
SHA256 916942d88d87a60a40e9282942b95a2b36a1e33c589ff72ad97696441a30d892
MD5 af500a09a34fe2dc907cb232139a6cb5
BLAKE2b-256 d41e8dc72562cc1450ce230dc85e430717e91b78513b2445373c0baf0c4e267b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ff73df5bc89f4be0a1ea69932f113ca7594b293b35381fefdb6893af30d3b0bc
MD5 bcfa1a5e0cdf3c63770e841b1414a54c
BLAKE2b-256 71c814a6c14c2e8ebaaed9d814d8d8d0594ba23c90b8af497222324548681f80

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