python-fire icon indicating copy to clipboard operation
python-fire copied to clipboard

Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.

Results 197 python-fire issues
Sort by recently updated
recently updated
newest added

`test.py` ``` import fire def hello(name): print(name) print(name.get('a')) if __name__ == "__main__": fire.Fire(hello) ``` example: ``` python test.py '{"a":"aaa","b":[1,2,3]}' ``` the param `name` is json dict, result print: ``` {'a':'aaa','b':[1,2,3]}...

question

With the following script: ``` class Build: async def __call__(self): pass import fire fire.Fire(dict(build=Build())) ``` Doing `./test.py build` outputs: ``` NAME test.py build SYNOPSIS test.py build GROUP | COMMAND |...

It would be great if the output help command would not cover the whole screen and after that disappear, but if it would just append its output to the command...

I'm not finding an easy way to get the --help output to include some basic information including details about the arguments. It seems to just parse the function signature and...

I would like to build objects that I can instantiate and call directly from a CLI. But I want to have a base class, that I can inherit from for...

enhancement

I tried putting some paths as `*varargs`. I found if my path contained whitespaces, whether I quoted the paths, fire will always separate them by any whitespaces it found. Hope...

Following the example from [the fire guide section on argument parsing](https://github.com/google/python-fire/blob/master/docs/guide.md#argument-parsing), it seems like when passing a list of strings to fire, none of the elements of the string can...

bug

I have a project [pyattck](https://github.com/swimlane/pyattck) that is utilizing fire for it's command line interface and I am returning a list of objects. For example, when using pyattck you can access...

I use fire as suggested by "Version 4: fire.Fire()" When I run "mycmd search --help" I get a nice help text but I'd like to remove the not useful/internal parameter...

My script returns a dictionary from command `script.py command`. That works well. But when I try to list just keys (`script.py command keys`) or values (`script.py command values`), I get...

enhancement