News for hackers. Stuff that matters.
Re:Gooey: Turn almost any Python command line program into a... by sireat on Monday June 14, 2021 @06:40AM (#27501102)
Brilliant workflow!

Today I learned about Fire AND Gooey

Sometimes I get bogged down in writing proper argparse when it really is not needed.

Are there any edge cases where Fire does not work too well, like some strange parameters (for example tuple as dictionary key)?

Re:Gooey: Turn almost any Python command line program into a... by roganartu on Monday June 14, 2021 @09:15AM (#27502122)
If you like the look of fire for the ease of creating a cli but wish it automatically did validation based on type annotations, you might like Typer[0]. The pathlib parameters are especially handy, I find.

[0] https://github.com/tiangolo/typer

Re:Gooey: Turn almost any Python command line program into a... by franga2000 on Monday June 14, 2021 @11:00AM (#27503384)
You had me at pathlib! I wish people used it more...
Re:Gooey: Turn almost any Python command line program into a... by roryokane on Monday June 14, 2021 @11:46PM (#27511047)
For anyone who doesn’t know what pathlib is: https://docs.python.org/3/library/pathlib.html
Re:Gooey: Turn almost any Python command line program into a... by vorticalbox on Monday June 14, 2021 @02:30PM (#27506332)
I love fastapi I wish I knew about this before!
Re:Gooey: Turn almost any Python command line program into a... by miohtama on Monday June 14, 2021 @07:03PM (#27509465)
I also recommend checking out Clicky. It is similar to Fire, but has been out there for very long time and has some more power features and documentation.
Re:Gooey: Turn almost any Python command line program into a... by high_byte on Monday June 14, 2021 @10:59AM (#27503372)
Same! TIL Fire & Gooey is a power move.
Re:Gooey: Turn almost any Python command line program into a... by deagle50 on Monday June 14, 2021 @11:24AM (#27503687)
Same! Thanks.