pydymenu: Pythonic wrapper for
A single package to serve all your dynamic menu-ing needs with a simple Pythonic
Installation from PyPi
pip install --user pydymenu
pydymenu.MENU(input_list, **options) -> Union[List[str], None]
import pydymenu people = ["Joe", "Sam", "Daniel", "Bret", "Jordan", "Eric", "Lex"] # simple rofi = pydymenu.rofi(people, prompt="Pick a podcaster: ") fzf = pydymenu.fzf(people, prompt="Pick a podcaster: ") # mutli fzf = pydymenu.fzf(people, prompt="Pick a podcaster: ", multi=True) rofi = pydymenu.rofi(people, prompt="Pick a podcaster: ", multi=True)
: The prompt text shown at the selection (default:
: Whether or not to allow multiple selections. When
multi=True returns a list
of selected values. If one selection is made returns a list of length one. If no
selection is made returns
: Whether or not to use case sensitive search (default:
: Command that will be run on each entry and displayed as it's preview when
using the fuzzy finder.
Working support for the most common
rofi use cases. Currently
expanding functionality for those two programs then going to move onto adding
I'm trying to keep this package as a pretty simple drop-in replacement for
iterfzf. Biggest design changes are:
fzfautomatically sorts results based on match quality.
- Selections always return lists of strings. When
multi=Falsereturns a list
of legnth 1.
- Support for dmenu systems