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. ▲ 5
    Python-Fire
    story by manjana · 2022-01-01 · 0 comments
  8. …functions. There may be some limitations compared to Piou, I will have to explore that to find out. https://github.com/google/python-fire
  9. ▲ 1
    Python Fire, automatic generation of CLIs from Python objects
    story by okl · 2021-12-16 · 0 comments
  10. 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
  11. …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)…
  12. ▲ 2
    Fire: Automatically generate CLIs from any Python object
    story by trueduke · 2021-06-14 · 0 comments
  13. …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
  14. …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
  15. …typer, your description is reminiscent of fire [1], which has worked well for our purposes. [1]: https://github.com/google/python-fire
  16. …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
  17. 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
  18. …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
  19. 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
  20. ▲ 24
    Google open sources library to generate CLIs
    story by reubensutton · 2019-12-06 · 2 comments
  21. 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.
  22. …for automatically generating command line interfaces (CLIs) from absolutely any Python object. https://github.com/google/python-fire
  23. …(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
  24. …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
  25. ▲ 4
    Show HN: Python Fire v0.2.0
    story by dbieber · 2019-07-26 · 1 comment
  26. …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)
  27. ▲ 252
    Python Fire – Generates CLIs from any Python object
    story by tzury · 2018-08-17 · 35 comments
  28. …- https://github.com/channelcat/sanic - https://github.com/pypa/pipenv - https://github.com/google/python-fire - https://github.com/explosion/spaCy
  29. ▲ 1
    Google Python Fire – Generate CLIs from Any Python Object
    story by tzury · 2018-01-10 · 0 comments
  30. Click is nice, but for my money, Fire is what Click should have been. https://github.com/google/python-fire
  31. ▲ 2
    Python-Fire: Automatically Generate CLIs from Python Objects
    story by craigkerstiens · 2017-05-22 · 0 comments
  32. ▲ 2
    Python Fire: a library for creating CLIs from absolutely any Python object
    story by happy-go-lucky · 2017-03-11 · 0 comments
  33. ▲ 1
    Creating command line interfaces (CLIs) from any Python object
    story by sean_the_geek · 2017-03-08 · 0 comments
  34. ▲ 2
    Automatically generating command line interfaces
    story by snickmy · 2017-03-07 · 0 comments
  35. ▲ 4
    Google's Python Fire – a library for creating CLIs from any Python object
    story by adenadel · 2017-03-06 · 0 comments
  36. ▲ 2
    Python Fire is a library for automatically generating command line interfaces
    story by uyoakaoma · 2017-03-05 · 0 comments
  37. ▲ 4
    Python Fire – library for automatically generating CLI from any Python object
    story by jonbaer · 2017-03-04 · 0 comments
  38. ▲ 2
    Python Fire: Automatically generate s CLIs from absolutely any Python object
    story by rkda · 2017-03-03 · 0 comments