You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

menus-py

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

menus-py

Simple library for creating text-based menus

1.3.0
pipPyPI
Maintainers
1

(readme adapted from in-code docs)

menus.py - Simple menu functions

menus.py is a small module designed to help quickly make simple and effective text-based menus of various types. It handles erroneous inputs automatically.

Functions

mainMenu

  Makes the user select one of any number of options
mainMenu(title,options,return_name=False,return_index=True)

title
  The title of the menu

options
  The list of menu options to display and select from

return_name
  Returns the name of the option selected

return_index
  Returns the index of the option in the list of options

yesNo

  Asks the user for a yes/no answer to a question
yesNo(question)

question
  The question to be asked

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