Hacker GitHub

← All repos

google/python-fire

View on GitHub ↗ ★ 28,226 Python

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

38 mentions on Hacker News by 33 people: 15 stories, 23 comments · first 2017-03-03 · latest 2026-06-24

Mentions per year 38 mentions · busiest year 2017 (9)
20082026
  1. …by Google employees as part of their job. Even some other tools in github.com/google have as much: https://github.com/google/python-fire / https://github.com/google/pytype/blob/main/docs/index.md / https://github.com/google/dopamine /…
  2. …projects with similar disclaimers under Google's own /google/ organization. To give a few examples: https://github.com/google/python-fire / https://github.com/google/pytype/blob/main/docs/index.md / https://github.com/google/dopamine /…
  3. I've been making zero-cost Python CLIs with this for years: https://github.com/google/python-fire
    comment by philomath_mn · 2024-06-04 · in Python's many command-line utilities
  4. …for automatically generating command line interfaces (CLIs) from absolutely any Python object. [1] https://github.com/google/python-fire
    comment by selcuka · 2024-06-04 · in Python's many command-line utilities
  5. The cli tool [fire]( https://github.com/google/python-fire/blob/master/docs/guide... ) has a nifty feature where it can generate a cli for any file for you. So random and math are somewhat usable that way $ python -m fire random uniform 0…
  6. Fire can basically do the first step (object -> CLI): https://github.com/google/python-fire Gooey can do (CLI -> GUI): https://github.com/chriskiehl/Gooey
  7. …functions. There may be some limitations compared to Piou, I will have to explore that to find out. https://github.com/google/python-fire
  8. Python-fire is a great package for this. Will look into bargeparse https://github.com/google/python-fire
    comment by d4rkp4ttern · 2021-10-09 · in Free resources to promote your next startup
  9. …the documentation instead of the other way around Click (3) And my own commandeer (4) Typer (5) (1) https://github.com/google/python-fire (2) http://docopt.org/ (3) https://click.palletsprojects.com/en/8.0.x/ (4)…
  10. …into a CLI without all the manual parameter parsing, and Gooey turns the CLI into a simple GUI. [0] https://github.com/google/python-fire
  11. …devs (it's not an official Google project as far as I remember), so it seems of reasonable quality. https://github.com/google/python-fire
    comment by oblio · 2021-01-15 · in My preferred .NET console stack
  12. …typer, your description is reminiscent of fire [1], which has worked well for our purposes. [1]: https://github.com/google/python-fire
  13. …depending on the complexity of your argparse-usage it might check 90% of your boxes for you. [1]: https://github.com/google/python-fire
    comment by gen220 · 2020-10-08 · in Tools I use: argparse builder
  14. You might want to look at Google’s python fire which makes this sort of thing obsolete. https://github.com/google/python-fire Just comment your code and get pretty arguments.
    comment by riddleronroof · 2020-10-08 · in Tools I use: argparse builder
  15. …you to drive classes with a MP-generated CLI. [0] https://www.attrs.org/en/stable/examples.html [1] https://github.com/google/python-fire
    comment by gen220 · 2020-07-13 · in Real World Programming in SWI-Prolog
  16. I personally enjoy using https://github.com/google/python-fire nowadays. -- it's probably not the most flexible tool, but IMHO it's the one with the best API: fire.Fire(obj) and everything else is taken care of ;) p.s.: for lazy imports,…
    comment by fabioz · 2020-05-28 · in Hypermodern Python
  17. Someone above posted this: https://github.com/google/python-fire seems you could generate something with fire tool and then parse it dynamically with Gooey.
  18. …for automatically generating command line interfaces (CLIs) from absolutely any Python object. https://github.com/google/python-fire
  19. …(holy moly decorators). Seems unwieldy to me, but does anyone have experience with both? [0] https://github.com/google/python-fire
    comment by kylek · 2019-08-18 · in Easy Python CLI with Click
  20. …Especially since fire works by reading through a file. Also nice work on the NamedTuple support ( https://github.com/google/python-fire/pull/161 ) I never knew fire had support for completion. Nice!
    comment by git-pull · 2019-07-27 · in Show HN: Python Fire v0.2.0
  21. …argument parsing boilerplate in Python, I have found Python Fire to be much more convenient: https://github.com/google/python-fire It would have shaved off another 15-20 lines from the 503 line example ;-)
    comment by ssivark · 2019-03-14 · in Write yourself a Git (2018)
  22. …- https://github.com/channelcat/sanic - https://github.com/pypa/pipenv - https://github.com/google/python-fire - https://github.com/explosion/spaCy
  23. Click is nice, but for my money, Fire is what Click should have been. https://github.com/google/python-fire