python-fire
python-fire copied to clipboard
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
I would pipe the output to a pager if I wanted one. Why this unnecessary complication?
Traceback (most recent call last): File "multilabel/runners/resnet_runner.py", line 26, in main() File "multilabel/runners/resnet_runner.py", line 22, in main fire.Fire(resnet50) File "/usr/local/lib/python3.6/dist-packages/fire/core.py", line 138, in Fire component_trace = _Fire(component, args, parsed_flag_args, context,...
I cannot get --help to work with classes. I've read the (oldish) "current state" in #364 but it did not help. Using the example [from the documentation](https://google.github.io/python-fire/guide/#calling-functions) ```python import fire...
seems typing with python 3.9+ does not work smoothly... ``` src/lightning_utilities/cli/__main__.py:5: error: Cannot find implementation or library stub for module named "fire" [import-not-found] src/lightning_utilities/cli/__main__.py:5: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports Found 1 error...
Beyond the fact that fire uses the last `--` to separate flag argument from command arguments, it seems that previous `--` are not parsed correctly. At least according to the...
## Description When using `fire` in Git Bash on Windows, the `initialize_or_disable` function in the `formatting_windows.py` unnecessarily invokes `colorama.init(wrap=True)` even though Git Bash already supports native ANSI escape sequences. This...
Prelim testing of my app on python3.13 threw this error from core.py for u folks to consider: ModuleNotFoundError: No module named 'pipes' I haven't researched it further. Has anyone tinkered...