Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

The easy way to create command line menus

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyclimenu, version 0.1.18
Filename, size File type Python version Upload date Hashes
Filename, size pyclimenu-0.1.18-py3-none-any.whl (17.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyclimenu-0.1.18.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page