# go-python/gpython

gpython is a python interpreter written in go "batteries not included"

Repository: https://github.com/go-python/gpython
Canonical: https://ross.abutalabs.com/products/gpython
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: python, python3, golang, interpreter
Last push: 2026-07-03T14:23:22+00:00

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

## Adoption (not part of the score)
Stars 1013, forks 105 (observed 2026-08-28T04:03:13.512908+00:00)

## What it is
gpython is a partial re-implementation and port of the Python 3.4 interpreter written in Go, including a lexer, parser, compiler, and runtime. It is designed to be embedded into Go applications with support for multiple concurrent interpreter instances, though it lacks most of the standard library's C-based modules.

## Use cases
- embed a Python interpreter in a Go application
- run Python scripts from Go code
- run multiple isolated Python interpreter instances concurrently
- experiment with interpreter and compiler implementation in Go
- use a Python REPL without installing CPython

## When to choose
- you need to embed a familiar scripting language into a Go application
- you need multiple independent interpreter contexts in a server
- you want to study or hack on a Python interpreter written in Go

## When to avoid
- you need a full CPython replacement with the complete standard library
- you need maximum Python execution speed
- you rely on C-extension modules like numpy or pandas

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: interpreter, parser, compiler
- domain: programming-languages, parsers, developer-tools
- platform: go, cross-platform, cli
- tags: python-implementation, embedding, repl, python-in-go, interpreter

## Member repositories
- go-python/gpython (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:13.512908+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-30T08:33:51.184308+00:00, confidence not recorded.
  - readme: https://github.com/go-python/gpython (fetched 2026-08-28T04:03:13.512908+00:00, sha a40a4733978f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
