# google/grumpy

Grumpy is a Python to Go source code transcompiler and runtime.

Repository: https://github.com/google/grumpy
Canonical: https://ross.abutalabs.com/products/grumpy
Language: Go
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2022-01-18T09:01:43+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3542, "days_push": 1688, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10492, forks 631 (observed 2026-08-28T04:10:42.115632+00:00)

## What it is
Grumpy is a Python-to-Go source code transcompiler and runtime from Google, intended as a near drop-in replacement for CPython 2.7. It compiles Python source into statically-compiled Go code with no VM, though it lacks support for dynamic execution, C extensions, and much of the standard library.

## Use cases
- compile python code to native binaries
- run python 2.7 programs without a vm
- transpile python to go source code
- integrate python logic into go applications
- speed up python by compiling to native code

## When to choose
- you have legacy Python 2.7 code you want to compile to native Go binaries
- you want to embed Python logic inside a Go program without a CPython runtime
- your code avoids exec/eval, C extensions, and heavy standard library use

## When to avoid
- you need Python 3 support
- you rely on C extension modules or dynamic features like exec and eval
- you need a complete Python standard library
- you want an actively maintained tool - the project is effectively abandoned

## Facets
- artifact type: library
- maturity: abandoned
- function: compiler, interpreter, programming-language
- domain: compilers, programming-languages, developer-tools
- platform: go, python, cross-platform
- tags: transpiler, python-to-go, cpython-2.7, aot-compilation, no-vm

## Member repositories
- google/grumpy (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:42.115632+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-30T07:21:07.418588+00:00, confidence not recorded.
  - readme: https://github.com/google/grumpy (fetched 2026-08-28T04:10:42.115632+00:00, sha 1fb67bde326c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
