Skip to main content

Better Menu

better_menu is a Python library for creating simple but cool menu(s) very fastly.

Installation

Use the package manager pip to install Pydeas

pip install better_menu

Get Started

For an example of the final output check

here

The menu constructor

the Menu constructor takes in 1 argument (and other optionals 2) : a menu dictionary that has the voice and a function that will be executed if the voice is chosen

m = {

  '1. Insert User': insert_user,

  '2. Exit': exit

}

Now pass the menu to the constructor

from better_menu.menu import Menu



m = {

  '1. Insert User': insert_user,

  '2. Exit': exit

}



menu = Menu(m)

menu.init()

Title and Subtitle

You can add a title and a subtitle that will be printed within the menu

from better_menu.menu import Menu



m = {

  '1. Insert User': insert_user,

  '2. Exit': exit

}



menu = Menu(m)

menu.title('Title')

menu.subtitle('Subitle')

menu.init()

Option Argument (indicator, color)

Indicator (ind): indicate the indicator of the selcted voice

Color (color): indicate the color of the title or subtitle or of the selcted voice if passed to the menu constructor

from better_menu.menu import Menu



m = {

  '1. Insert User': insert_user,

  '2. Exit': exit

}

#set the indicator of the selcted voice to '>' and the color of the selected voice to red

menu = Menu(m, ind='>', color='red') 



# set the color of the title to 'black'

menu.title('Title', color='black') 



# set the color of the subtitle to 'blue'

menu.subtitle('Subitle', color='blue')



menu.init()

Better Menu v1.0.13

Metadata

Release files for better-menu 1.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for better-menu 1.0.13
File Size Uploaded Provenance
better_menu-1.0.13.tar.gz 2.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for better-menu 1.0.13
File Interpreter ABI Platform
better_menu-1.0.13-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / better_menu-1.0.13.tar.gz

Download URL better_menu-1.0.13.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e881052da72b12c98c5e119b604dc622193622747e3fb94f19989b12bb1ea6f7
BLAKE2b-256 checksum
How to use checksums
47103399eba20e871c82eeea1eeb083b698582c934adb07d801bfedb6c0a3f75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / better_menu-1.0.13-py3-none-any.whl

Download URL better_menu-1.0.13-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9cf8a410f39c0da5bbc0e3ecd9fda4d39947b854b65deb8af1f6392621c25e9
BLAKE2b-256 checksum
How to use checksums
e13afd498124ddb226422626c92509fc68dc3b472385d96ce0640e53172461d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Security for better-menu 1.0.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.13 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page