I was able to find a couple of options for writing Python extension modules in Go: * https://github.com/asottile/setuptools-golang * https://github.com/go-python/gopy However, I haven't found any public references for production use of such bindings comparable to the Sentry use case for Rust bindings.
Activity
ncoghlan commentedon Aug 1, 2017
Article about the Go 1.5 changes that enabled this: https://blog.filippo.io/building-python-modules-with-go-1-5/
asottile commentedon Jul 1, 2018
@ncoghlan the only public use I know of
setuptools-golangis https://github.com/asottile/dockerfilergommers commentedon Nov 10, 2026
The packaging guide today doesn't seem like the right place for this kind of low-usage/niche info - I suggest closing this.
rgommers commentedon Nov 10, 2026
Wrong button - I wanted to ask @ncoghlan first, even though I'm pretty sure we do want to close this as out of scope.