pmenu_lib
1.0.0
Sleek dmenu alternative written in Python and powered by curses.
Comes in different flavors:
pmenu CLI, for your terminal and shell scripts. [ GitHub]pmenu_lib package, for your Python projects. [? PyPi] [ GitHub]You are now looking at the pmenu_lib Python package.
The pmenu(list_of_options) function will display a menu and return the selected option as a str, or None if the menu is closed without selecting an option.
from pmenu_lib import pmenu
selected_option = pmenu(list_of_options)