3 ms·
I've used Fire[0] for a few projects and have been meaning to give Click a try, but I'm not sure I like the syntax after reading through the article (holy moly
by kylek 7y ago
I've used Fire[0] for a few projects and have been meaning to give Click a try, but I'm not sure I like the syntax after reading through the article (holy moly decorators). Seems unwieldy to me, but does anyone have experience with both?
[0] https://github.com/google/python-fire https://github.com/google/python-fire
- ssivark 7y agoBased on the examples in the article, explicitly writing a line for each CLI option seems like excessive boilerplate and verbosity that Fire manages to sidestep completely. To me, this is the principal point of using a Python library to create CLIs. Am I missing something?
- chupasaurus 7y agoFire works with bare args, automatically supports --arg=value for constructor's arguments and provides more features like tracing and bash completion generator.
- jblarneyforward 7y agoI liked fire a lot, gets kinda goofy sometimes (and it looks abnormal in exceptions). If you can use python 3 - defopt is simpler and less visually noisy on errors https://defopt.readthedocs.io/en/stable/ https://defopt.readthedocs.io/en/stable/