Skip to main content

pyclimenu

Code Analysis Testing codecov

This python module creates simple command line menus. Just define the callable and the label of each option and voila! Foreground, background color numbering and labels are adjustable.

Install

pip install pyclimenu

Demo

from pyclimenu.menu import Menu

def a():
    print('''
    Let's Rock!
    ''')
    return 1

mn = Menu(items=[
    {"label": "The easy way", "callback": a},
    {"label": "to create", "callback": a},
    {"label": "command line menus", "callback": a}
])
mn.set_colors(num_fg="cyan", num_bld=True, label_fg="blue", label_bl=True)

results = mn.run(header="pyclimenu")
print(results)

menu

Metadata

Release files for pyclimenu 0.1.18

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

Source distribution (sdist)

Source distribution for pyclimenu 0.1.18
File Size Uploaded
pyclimenu-0.1.18.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyclimenu 0.1.18
File Interpreter ABI Platform
pyclimenu-0.1.18-py3-none-any.whl Python 3 none any Details

Total release size: 21.5 kB

Release files / pyclimenu-0.1.18.tar.gz

Download URL pyclimenu-0.1.18.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8ef7732029084447e5114a02f9265b5cbd395b69d5bf9fdc432f81d90958927f
BLAKE2b-256 checksum
How to use checksums
f126d5f31a693954f6f9a783539b8bb3d5f206e44fc583943fdfa8cc9e432c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

Release files / pyclimenu-0.1.18-py3-none-any.whl

Download URL pyclimenu-0.1.18-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
038438ba349cea0c10e4bd8a58c1ebf5b296251e577e9e30932058c06c09be1d
BLAKE2b-256 checksum
How to use checksums
222f9d3418d9414ca913128b6d21b26be9edaae7a2f3fbf5ba3773570d13620c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.1.18 This release

2 release files

0.1.17

2 release files

0.1.16

1 release file

0.1.15

2 release files

0.1.13

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.4

1 release file

0.1.1.9

1 release file

0.1.1.8

1 release file

0.1.1.7

1 release file

0.1.1.6

1 release file

0.1.1.5

1 release file

0.1.1.4

1 release file

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