{"repo":"google/python-fire","free":true,"listed":false,"github":"https://github.com/google/python-fire","clone":"git clone https://github.com/google/python-fire.git","description":"Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.","language":"Python","stars":28208,"topics":["python","cli"],"license":null,"category":"cli-tools","readme_excerpt":"Python Fire Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object. - Python Fire is a simple way to create a CLI in Python. [[1]](docs/benefits.md#simple-cli) - Python Fire is a helpful tool for developing and debugging Python code. [[2]](docs/benefits.md#debugging) - Python Fire helps with exploring existing code or turning other people's code into a CLI. [[3]](docs/benefits.md#exploring) - Python Fire makes transitioning between Bash and Python easier. [[4]](docs/benefits.md#bash) - Python Fire makes using a Python REPL easier by setting up the REPL with the modules and variables you'll need already imported and created. [[5]](docs/benefits.md#repl) Installation To install Python Fire with pip, run: pip install fire To install Python Fire with conda, run: conda install fire -c conda-forge To install Python Fire from source, first clone the repository and then run: python setup.py install Basic Usage You can call Fire on any Python object: functions, classes, modules, objects, dictionaries, lists, tuples, etc. They all work! Here's an example of calling Fire on a function. Then, from the command line, you can run: Here's an example of calling Fire on a class. Then, from the command line, you can run: To learn how Fire behaves on functions, objects, dicts, lists, etc, and to learn about Fire's other features, see the Using a Fire CLI page. For additional examples, see The Python Fire Guide. Why is it called Fire","default_branch":null,"files":null,"tree":[],"storefront":"/r/google","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/google/python-fire/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}