Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyclimenu

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyclimenu

The easy way to create command line menus

  • 0.1.18
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc