# google/python-fire

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

Repository: https://github.com/google/python-fire
Canonical: https://ross.abutalabs.com/products/python-fire
Language: Python
License: NOASSERTION
License Family: other
Topics: python, cli
Last push: 2026-07-01T08:19:02+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 11, longevity 100
- inputs: {"age_days": 3480, "days_push": 63, "days_rel": 382, "gap_med": 319, "n_releases_24m": 2}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 28208, forks 1491 (observed 2026-08-28T04:11:48.204982+00:00)

## What it is
Python Fire is a Google library that automatically generates command line interfaces from any Python object, including functions, classes, modules, and data structures. It turns existing Python code into a usable CLI with help text and argument parsing without any boilerplate.

## Use cases
- turn a python function into a cli command
- expose a class's methods as command-line commands
- quickly build a cli without writing argparse boilerplate
- debug and explore python code from the terminal
- convert an existing python module into a command-line tool
- set up a python repl with modules pre-imported

## When to choose
- you want a CLI from existing Python code with zero boilerplate
- you need automatic help text and argument parsing from signatures and docstrings
- you're prototyping scripts or exploring code interactively

## When to avoid
- you need fine-grained control over CLI UX, subcommand grouping, or custom help output
- you're building a polished end-user CLI tool with strict interface contracts
- you need high-performance argument parsing with complex validation

## Facets
- artifact type: library
- maturity: stable
- function: cli, developer-tools
- domain: developer-tools
- platform: python, cli, cross-platform
- tags: cli-generation, argument-parsing, google, introspection, repl, command-line, python

## Member repositories
- google/python-fire (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:48.204982+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:54:25.602627+00:00, confidence not recorded.
  - readme: https://github.com/google/python-fire (fetched 2026-08-28T04:11:48.204982+00:00, sha 65237b8f7c97)
- Data as of 2026-08-30T08:39:29.467469+00:00.
