python-fire
python-fire copied to clipboard
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
Fire is a really good library. But it needs to include the functionality like in Argparse. Ex. Epilogue, help, syntax
# Description: Short flags/arguments (e.g. `-u` for `--username`) does not work with `**kwargs` # Example that works OK: The following example works ok: ```python import fire def cli(first_arg="left", second_arg="right"): """Prints...
``` ChefBuildError Backend 'setuptools.build_meta:__legacy__' is not available. at /usr/local/lib/python3.10/site-packages/poetry/installation/chef.py:152 in _prepare 148│ 149│ error = ChefBuildError("\n\n".join(message_parts)) 150│ 151│ if error is not None: → 152│ raise error from None 153│...
Hi! I package this project for Arch Linux. We are currently trying to finally get rid off mock as test requirement (as it is included with Python since 3.3). It...
``` def test(a, b): print(a, b) if __name__ == "__main__": fire.Fire(test) ``` `python .\test.py 1 '2 3'` ```1 2 3``` `python .\test2.py 1 '""2 3""'` `1 2 3` `python .\test.py...
**Pull Request: Create Virtual Environment** **Description:** This pull request adds instructions for creating a virtual environment in the project. A virtual environment helps keep project dependencies isolated, making it easier...
Fire now try to parse flat args and kwargs, but often this not convenient Example: ``` import fire def test(*args, **kwargs): print(kwargs) print(args) fire.Fire(test) ``` `python main.py arg1 arg2 --kwarg1...
## Issue When `python` install `fire` package, console show warning: ```shell DEPRECATION: fire is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and...
I want to show some description of cmd when user typed in `cmd -- --help`.
I know there is a guide line of code style [remarking it will not accept type hints](https://github.com/google/python-fire/blob/master/CONTRIBUTING.md#:~:text=No%20type%20hints%2C%20as%20described%20in%20PEP%20484%2C%20to%20maintain%20compatibility%20with%20Python%20versions%20%3C%203.5.). However, would you accept type hints in [stub files](https://mypy.readthedocs.io/en/stable/stubs.html#:~:text=A%20stub%20file%20is%20a,and%20most%20importantly%2C%20their%20types.), rather than in source...