Skip to main content

A simple menu manager package.

Project description

Python Simple Menu Manager V. 0.0.3

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",
    verbose=False) 
  • 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.
  • verbose - Option to allow for more verbose CLI printing. (Optional, defaults to "False")

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.3.tar.gz (4.0 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.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_menu_manager-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 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.3.tar.gz
Algorithm Hash digest
SHA256 5bd7a884657e561a5e3ed60e06f431363f7e9c3217697ba89c828fbf2a7fd9d7
MD5 00cb283eb35916a5b9a0338286419546
BLAKE2b-256 5937ca6739d892735ba156eb6698dff130234d5cf99f1625815b369e2a6c6554

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_menu_manager-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4e3d0e8ada993bf5291a5c2cf04d90450e85ec2313b77f233246625a9bde76bc
MD5 ad70020e892611500edf5e2864c5a8b1
BLAKE2b-256 06d34bb17f7c229400fb3630248d5451e93640b12c926314a33065fa35dfb961

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