Show HN: Beautiful Python List Prompts Package
github.com
github.com
http://www.unixcl.com/2009/12/linux-dialog-utility-short-tut...
https://github.com/larsyencken/questioner/
It's not as pretty as bullet, but it's trying to fit in an annotation loop. It would be super cool to extend bullet to choose-many questions too.
https://python-prompt-toolkit.readthedocs.io/en/stable
Might be useful to handle deactivated choices (ie greyed out).
It looks like it handles multi choice (with the check feature), but can it do validation upon a check being selected or does it need to wait until the user has made their choice? Am thinking for catching invalid combinations.
https://github.com/Mckinsey666/bullet/blob/master/DOCUMENTAT...
One package just for a radio list is too much like the npm way of doing things.
edit: and in particular for click. i didn't realize gooey was for arg parse
termios is a built-in package, but not for Windows. https://docs.python.org/3/library/termios.html
It's (Beautiful Python List Prompts) Package, not Beautiful (Python List Prompts Package).
Just tell me what it does. I'll decide if it's beautiful.
Edit: React has an ecosystem for things like this. Cocoa/Obj-C has an ecosystem for things like this. Tiny single purpose UI elements. Python does not have this because there is no UI framework for doing console applications that doesn’t already provide this capability as part of a batteries included tool.
If you have a command line application in python you could implement this for fancier list selections.
I'm unclear on how you relate this to React components. Python libraries have been part of an existing ecosystem long before React. The python ecosystem.
while True:
for i, item in enumerate(list):
print(i, item, sep=" - ")
choice = input()
if valid(choice):
break
This would make those so much easier to write and give a much nicer UI at the same time.Where does React come into this? That’s for the web...