python-fire
python-fire copied to clipboard
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
Now you can run `widget -- --completion fish 5` to change the depth of completion. Linked to issue : https://github.com/google/python-fire/issues/266 Signed-off-by: Tomer Ben Gera
nested namedtuples are seen as dict. But inner namedtuples are tuples and are now supported
this adds an additional fire flag (-- -d|--debug) which provides for automatically dropping a user into post mortem pdb session on exception in the underlying exposed callable.
Surprised if this is not a dup, or documented - but I couldn't find it. In most of my scripts I have a default behavior, and keyword modifiers, e.g. ```...
Given code like this: ```python def hardcoded(): # ... def __getattr__(name): # ... def __call__(*args): # ... if __name__ == '__main__': fire.Fire(run) ``` I would like fire to call `hardcoded`...
`add_argument` from `argparse` has a `type` [option](https://docs.python.org/3/library/argparse.html#type) that "allows any necessary type-checking and type conversions to be performed". The ability to ensure the CLI args are converted to certain types...
Hey, great job, love the tool !!!! When creating command groups using classes, --help isn't correctly displaying. **Consider this example** ``` import fire class GroupBase: def __init__(self, verbose: bool): self.verbose...