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.1.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-0.3.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-0.3.1.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-0.3.1.tar.gz
Algorithm Hash digest
SHA256 49063cc02922b5d5a02609b570928e6f1982901c88e22a343944509c6ba1e401
MD5 d4a00aa80cb8b492d3cf19fb11a34e8a
BLAKE2b-256 2637b4274ba82f63c7a18be716822c662f20d1c0d4e4d441ddb56073a3d592ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef37d7dead66422f73e9adcf2478c15ce2c4a385f5e8bb3bd38e7c7fd0106413
MD5 0f60b59861bd2d31bbef322a63e72bfc
BLAKE2b-256 2be69ac0592f8427585cc9f3fdae34adb12d58076f64738e2c10635876bc4173

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