Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple Python menu in the terminal using curses. Ideal for people who want to quickly make a menu without writing their own complicated crutches. Includes: SelectorMenu, MultipleSelectorMenu, FunctionalMenu.

License

Notifications You must be signed in to change notification settings

BaggerFast/PyConsoleMenu

Repository files navigation

PyConsoleMenu

CodeFactor BUILD-STATUS

A simple Python menu in the terminal using curses. Ideal for people who want to quickly make a menu without writing their own complicated crutches. Includes: SelectorMenu, MultipleSelectorMenu, FunctionalMenu.

Preview

Selector

See other

Installation πŸ’Ύ

  • using pip
$ pip install PyConsoleMenu
  • using GitHub (трСбуСтся git)
$ git clone https://github.com/BaggerFast/PyConsoleMenu
$ cd PyConsoleMenu
$ pip install -r requirements.txt

Additionally ⌨️

  • Docs in code
  • Type hints

Usage example πŸ‘¨β€πŸ’»

from PyConsoleMenu import MultiSelectorMenu, FunctionalOption, SelectorMenu, FunctionalMenu
def multi_selector():
 menu = MultiSelectorMenu(['Cheburashka', 'Parrot', 'Snake', 'Gena'], title='MultiSelector', count=3)
 ans = menu.input()
 print(ans)
def selector():
 menu = SelectorMenu(['Cheburashka', 'Parrot', 'Snake', 'Gena'], title='Selector')
 ans = menu.input()
 print(ans)
def functional():
 data = [
 FunctionalOption('Cheburashka', lambda: print('I am a Parrot')),
 FunctionalOption('Parrot', lambda: print('I am a Cheburashka')),
 ]
 menu = FunctionalMenu(data, title='Functional')
 ans = menu.input()
 ans()

See more examples

Was written in these videos on YouTube πŸ‘€
Video#1
Stream#1
Stream#2

About

A simple Python menu in the terminal using curses. Ideal for people who want to quickly make a menu without writing their own complicated crutches. Includes: SelectorMenu, MultipleSelectorMenu, FunctionalMenu.

Topics

Resources

License

Stars

Watchers

Forks

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /