Open gbataille opened 4 years ago
The filter looks really cool, would love to integrate that :rocket:
Hey @tmbo
so I migrated my code to questionary
. https://github.com/gbataille/password-organizer/pull/1
What I like
Choice
class (like I had done) 👍 What I'm missing
Choice
should be a Generic
type, parameterised by the type T
of it's return value. Actually I would personally tend to remove the python-style "I accept multiple type in input" and just deal with List
of Choice
and not accept str
and dict
KeyboardInterrupt
errors to return None
. I had made the choice to not do that. Not sure I like it, but at least we should document it.I'll try and do individual issues/PR in your repo for all those points, unless you feel otherwise
Cheers
pending work here https://github.com/gbataille/questionary/tree/prefix_filter_search
As featured here (when selecting the AWS region) https://asciinema.org/a/AyujEPdjcDmSPoOK26pTozCiO
@tmbo thanks for pointing me here from PyInquirer. Looks like the more modern/maintained alternatives (latest lib, tests, ...)
I'll try to use questionary soon and if it's all good, I'll contribute the filter that I have built that I find very practical on long lists like the one I'm dealing with.