# sbinet/go-python

naive go bindings to the CPython2 C-API

Repository: https://github.com/sbinet/go-python
Canonical: https://ross.abutalabs.com/products/go-python
Language: Go
License: NOASSERTION
License Family: other
Topics: python2, go, golang, cgo
Archived: true
Last push: 2023-07-24T07:11:30+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5168, "days_push": 1136, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1535, forks 140 (observed 2026-08-28T04:04:59.842665+00:00)

## What it is
Go bindings to the CPython 2 C-API via cgo, exposing PyXYZ functions to Go programs. It also ships a go-python executable that embeds the Python interpreter, but the project is archived since CPython 2 is end-of-life.

## Use cases
- embed python 2 interpreter in a go program
- call cpython c-api functions from go
- write go-based extensions for cpython
- manipulate python objects from go code

## When to choose
- you must maintain legacy code that embeds CPython 2 in Go

## When to avoid
- starting a new project
- you need Python 3 support
- you want a maintained library

## Facets
- artifact type: library
- maturity: abandoned
- function: sdk, parser
- domain: developer-tools, programming-languages
- platform: go, python, windows
- tags: cpython2, cgo, c-api-bindings, archived, python-embedding, linux, macos

## Member repositories
- sbinet/go-python (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:59.842665+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-30T04:31:10.187439+00:00, confidence not recorded.
  - readme: https://github.com/sbinet/go-python (fetched 2026-08-28T04:04:59.842665+00:00, sha 70c908190846)
- Data as of 2026-08-30T08:39:29.467469+00:00.
