Skip to content

A straightforward python package to create command-line interactive menus with modular functionality. Simple and extensible.

License

Notifications You must be signed in to change notification settings

Aguscarpio/menu-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python package to create command-line interactive menus in an extensible, simple and modular way.

Installing

pip install fuzzy-menu-cli

Example of usage

from menu_cli import Menu, Action, Pick

main = Menu("My first menu", [
	Action("Say hi!", lambda: print("Hello world!")),
	Menu("I am a submenu", [
		Pick("I can move between menus and options"),
		Pick("I can fuzzy-find the options"),
		Pick("I can trigger actions"),
		Pick("I love this project!"),
	])
	Action("EXIT", lambda: pass,
])

main.navigate()

Example main Menu

Example picking and fuzzy-finding

About

A straightforward python package to create command-line interactive menus with modular functionality. Simple and extensible.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages