Skip to main content

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.

Source Distribution

pyclimenu-0.1.18.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pyclimenu-0.1.18-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file pyclimenu-0.1.18.tar.gz.

File metadata

  • Download URL: pyclimenu-0.1.18.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyclimenu-0.1.18.tar.gz
Algorithm Hash digest
SHA256 8ef7732029084447e5114a02f9265b5cbd395b69d5bf9fdc432f81d90958927f
MD5 b8f492367a3fe6032b2f1571bcfba927
BLAKE2b-256 f126d5f31a693954f6f9a783539b8bb3d5f206e44fc583943fdfa8cc9e432c91

See more details on using hashes here.

File details

Details for the file pyclimenu-0.1.18-py3-none-any.whl.

File metadata

  • Download URL: pyclimenu-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyclimenu-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 038438ba349cea0c10e4bd8a58c1ebf5b296251e577e9e30932058c06c09be1d
MD5 eefe239655be3b962bcdc0f2c895e871
BLAKE2b-256 222f9d3418d9414ca913128b6d21b26be9edaae7a2f3fbf5ba3773570d13620c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page