Skip to main content

A simple menu manager package.

Project description

Python Simple Menu Manager V. 0.0.2

Purpose

This project was created so that I could have a relieable, simple, lightweight menu manager for use in CLI based tools.

Installation

To install simply run
pip install simple_menu_manager

Usage

This package allows for a reactive menu management experience without multiple added packages (apart from this of course).

The menu manager will always return the associated number based on the options submitted, starting at "1" for the first option.
The exit/return condition will always return "0".

Usage Example

from simple_menu_manager import simple_menu


simple_menu.menu_handler(
    message="Choose an option:",
    options=[
        "Option 1",
        "Option 2",
        "Option 3",
        "Option 4",
        "Option 5",
        "Option 6",
        "Option 7",
        "Option 8",
        "Option 9",
        "Option 10"
    ],
    return_message='Exit',
    menu_type='default') 
  • message - The message that appears above the menu, such as "Choose an option:".
  • options - The selectable options, associated numbers added automatically.
  • return_message - The text associated with the exit command, useally "Exit", "Cancel", "Return", or similar. (Optional, defaults to "Exit")
  • menu_type - The type of menu utilized, available options; (Optional, defaults to "default")
    • "default" - Auto selects based on what options are avaible for imoprt.
    • "curses" - Leverages curses for an interactive menu.
    • "standard" - Uses only standard parts of the Python library.

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

simple_menu_manager-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_menu_manager-0.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file simple_menu_manager-0.0.2.tar.gz.

File metadata

  • Download URL: simple_menu_manager-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for simple_menu_manager-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6a21fcfa3089ab2d2e5426cf72c53f56d4c319a60659879092a2793236043668
MD5 9fcce6901de016f1bdd1845f65b9a04e
BLAKE2b-256 823ccd1a4f1c1094769fd67af5b0c6406e3ae24eb6cd28f5409bca3676e0429c

See more details on using hashes here.

File details

Details for the file simple_menu_manager-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_menu_manager-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2d909ef40d9df89a6cf5430a8934e936038e03d2a930cc05c8e912c2053dcd2
MD5 b392ff4c163c9b0eb69b22c9119519e7
BLAKE2b-256 22b801aaf96524f998a06c4261f1123306867a4fde0a48ab2a305293ed9434e6

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