go-python/gopy
gopy generates a CPython extension module from a go package. observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 99
- Release rhythm 67
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4233
- days_rel: 9
- days_push: 9
- n_releases_24m: 1
Adoption not part of the score
2327 stars · 136 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
gopy is a command-line tool that generates and compiles CPython extension modules from Go packages, letting Python code call Go code directly. It uses int64 handles for safe garbage-collector interop and supports callbacks from Go into Python and struct-based class inheritance in the generated wrappers.
Use cases
- call a Go library from Python
- generate Python bindings for a Go package
- use Go code in a Python project
- wrap a Go SDK for Python users
- expose Go functions as a CPython extension module
- run Go GUI libraries from Python scripts
When to choose
- you have an existing Go package and want to use it from CPython
- you need tight, compiled bindings rather than a subprocess or HTTP bridge
- you need Go-to-Python callbacks and Go struct inheritance mapped to Python classes
When to avoid
- you need PyPy support without extra work (cffi path is not the default)
- you want pure-Python packages with no compilation step
- your Go package relies on features gopy cannot wrap
Facets
cli-tool · maturity active
compiler developer-tools sdk developer-tools programming-languages cross-platform windows go python cli go-bindings cpython-extension python-bindings interop cgo pybindgen linux macos
1 source
- readme: https://github.com/go-python/gopy · fetched 2026-08-28 · 97423d72fda7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| go-python/gopy | main | 88 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem