Python Fire: a library for creating command line interfaces (CLIs) from absolutely any Python object

Few days ago Google open-sourced Fire, a Python library to generate command line interfaces (CLIs) from any Python code. Simply call the Fire function in any Python program to automatically turn that program into a CLI.
You can install Fire using pip:

Fire is easy to use, take a look to this example:

From the command line we can now run:

When you create the Fire object you can specify the name of the command as entered at the command line.

Example usage:

I am already using Fire for a small project, it is very useful, it works well and it saves your time (you do not need to write code to parse input args).

Here you can find some useful resources and examples: