Skip to main content

A terminal-based menu system using curses.

Project description

Starri

Starri is a simple Python library for creating terminal-based menus using the curses module. 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:

import starri as *

def main():
    starri(
        title = "Test Menu"
        choices = [
            {"label": "Option 1", "onselect": lambda: print("Option 1 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.2.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-0.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: starri-0.2.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-0.2.tar.gz
Algorithm Hash digest
SHA256 2b88a4a9da126ff52fa2bb6625917f0a07e4f5f47de8a039201f0a3d2c20acaf
MD5 1487d21325f2d2e0bb55d82acc50be0a
BLAKE2b-256 c720bb0f4f623e172f9b5727ae95650e0513f7e714802b977cfd3ddcab478aec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: starri-0.2-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-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 36d56d62e68a74e3e6a7cbaf80e9f265bd145e2dbd4287822f87b1b6ed5d5f01
MD5 4767998540ade7efbf52c54973c2b140
BLAKE2b-256 801dbc33f98410f0bdd5f5353b7f758b6c00a24660fdd1603443a0001859e3cc

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