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")},
            {"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.3.tar.gz (2.4 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.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for starri-1.3.tar.gz
Algorithm Hash digest
SHA256 29b9b7cdd77748cd54f4ac8deaf1bfdb309d46fc4888b4618e01a8f4c7743aac
MD5 09c009c277a5944553ec17690b99a0b0
BLAKE2b-256 d0ed311a203dba442c17338ccfb1cb46b331da6c1f4dfa0ce8d742c5f822c6a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aedb345f51484b1e7d9b5d2b1adace76886a56c95e4a950348f315530158fcbd
MD5 7432313473d30709bac1d1eff7b61570
BLAKE2b-256 fbf6cb0290661810b38e125edec98d117e4c839dcadcefa13c8fc3a49661147e

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