python-fire
python-fire copied to clipboard
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
Is there a way to write custom text in --help / -h option like this? ```python help = """ custom help text """ ``` or ```python def help(): print("custom help...
This is just a report. I hope it will be useful for development. I'm using fire v0.4.0. ```python # tmp.py import fire def main(keyword_list): print([(keyword,type(keyword)) for keyword in keyword_list]) fire.Fire(main)...
When tests are run using python-fire, an error occurs. Example error: https://app.travis-ci.com/github/GitBib/pyasstosrt/jobs/583684057
Updates the requirements on [setuptools](https://github.com/pypa/setuptools) to permit the latest version. Changelog Sourced from setuptools's changelog. v69.5.1 No significant changes. v69.5.0 Features Refresh unpinned vendored dependencies. (#4253) Updated vendored packaging to...
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. Release notes Sourced from pytest's releases. 8.2.0 pytest 8.2.0 (2024-04-27) Deprecations #12069: A deprecation warning is now raised when implementations...
Updates the requirements on [levenshtein](https://github.com/rapidfuzz/Levenshtein) to permit the latest version. Release notes Sourced from levenshtein's releases. Release 0.25.1 Fixed fix potentially incorrect results of jaro_winkler when using high prefix weights...
Type annotations that use `typing.Optional` are incorrectly documented when showing help. ## Example 1 ```python from typing import Optional import fire def main(arg: Optional[str] = 'something'): """Do something with arg."""...
I suggest including testing on Mac and Win. also, the addition of OS builds does not need to be so extensive and could be listed in the `include` section adding...
**Issue:** Fixes https://github.com/google/python-fire/issues/438 Given an object that has no __init__ method, or the __init__ method takes no arguments besides self passing a '--help' flag results in a **less** verbose help...
Much like how we allow users to use hyphens `-` in place of underscores, this Issue is to allow users to use all-lowercase versions of identifiers. **Typical case** ``` import...