Skip to main content

Prebuilt Go Runtime

Deploy Status Go Latest Release PyPI

Overview

This package provides a prebuilt Go runtime for integrating Golang artifacts into Python projects.

Features

  • Automatic Go runtime download for multiple platforms
  • Cross-platform support (Windows, Linux, macOS)
  • Declarative integration with python build systems

Using the go binary

One potential use case for go-bin is to facilitate managing the go binary. Rather than managing multiple go installations, utilize tools such as uv to switch between environments.

Without needing anything other than uv, building a golang binary becomes as simple as,

uvx --from=go-bin go build ./...

Using go-bin for packaging

Whether you're building standalone go binaries or writing c-extensions in golang, this package allows a declarative and hermetic way to build golang source code.

Simply define a build dependency on go-bin,

[build-system]
requires = ["hatchling", "go-bin~=1.23.4"]
build-backend = "hatchling.build"

It is recommended to use compatible release versions (~=). Major, minor, and patch versions of go-bin will always correlate with Go versions while the latter digit is reserved for changes in packaging.

then use it in your build scripts as if it were your system's version of go. For an example, see github.com/jmelahman/connections.

Building the wheel locally

The build depends on a few environment variables to be set. For example, to build the v1.25.5 version for x64 Linux, run,

GITHUB_REF_NAME=v1.25.5 GOOS=linux GOARCH=amd64 uv build --wheel

Metadata

Release files for go-bin 1.27.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for go-bin 1.27.2
File
go_bin-1.27.2-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
go_bin-1.27.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
go_bin-1.27.2-py3-none-win32.whl Python 3 none Windows x86-32 Details
go_bin-1.27.2-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
go_bin-1.27.2-py3-none-manylinux_2_17_s390x.whl Python 3 none Linux glibc 2.17+ IBM System/390x Details
go_bin-1.27.2-py3-none-manylinux_2_17_ppc64le.whl Python 3 none Linux glibc 2.17+ PowerPC 64-le Details
go_bin-1.27.2-py3-none-manylinux_2_17_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details
go_bin-1.27.2-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
go_bin-1.27.2-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details
go_bin-1.27.2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details

Total release size: 733.4 MB

Release files / go_bin-1.27.2-py3-none-win_arm64.whl

Download URL go_bin-1.27.2-py3-none-win_arm64.whl
Size 71.6 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
05aaf0d6d5217259d8d635abd754090fcbf7e7d0eef93847ac2d6078302b3f3a
BLAKE2b-256 checksum
How to use checksums
5258ee468c8530c9506561cc2b5bf18a7c3c4e106ef42553a393215ff272450e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / go_bin-1.27.2-py3-none-win_amd64.whl

Download URL go_bin-1.27.2-py3-none-win_amd64.whl
Size 75.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
fa8f3300177a89a303e158ae2f5b69d99189181aadf26344ecbf11f3da760e41
BLAKE2b-256 checksum
How to use checksums
1b908e2874a066263c2866acfea8f7d61b16aea9289d59fcc63828448602a608
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / go_bin-1.27.2-py3-none-win32.whl

Download URL go_bin-1.27.2-py3-none-win32.whl
Size 74.4 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
c9b352aac5a93ae31e2d74082ddf438fe2aaa63d4b997e321328d96cd7d6bf6e
BLAKE2b-256 checksum
How to use checksums
1ac500d6ed59f62e3066cd609f93221ab9e1fda6460b57c859d6850f89a1f31f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / go_bin-1.27.2-py3-none-manylinux_2_17_x86_64.whl

Download URL go_bin-1.27.2-py3-none-manylinux_2_17_x86_64.whl
Size 74.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
202ee8e08c34a2c476583c25889baefc55d5e4f9f048fe133c43c7480402b94e
BLAKE2b-256 checksum
How to use checksums
fcea9f6abbdc7fff8399addd69fe60c1083196ae05abfa7f53e9226446379403
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / go_bin-1.27.2-py3-none-manylinux_2_17_s390x.whl

Download URL go_bin-1.27.2-py3-none-manylinux_2_17_s390x.whl
Size 74.3 MB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
446835de5739099ee89291b3bf33602459638b8b95c6cbcc14d2be5af792c445
BLAKE2b-256 checksum
How to use checksums
4b0208901d6c90f7aee8d3fbc30b5dbf40846c473b3fe9acae32ad71e6dfb8d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / go_bin-1.27.2-py3-none-manylinux_2_17_ppc64le.whl

Download URL go_bin-1.27.2-py3-none-manylinux_2_17_ppc64le.whl
Size 71.8 MB
Tags Linux glibc 2.17+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
4fb50d6313a9e885e6e05390b4a89aef31cfeb2e91b0cc049e3b021eeb8e9f67
BLAKE2b-256 checksum
How to use checksums
da0502d9af30f07428296d2afae8c30294900146e4834950ed7679b827d92ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / go_bin-1.27.2-py3-none-manylinux_2_17_i686.whl

Download URL go_bin-1.27.2-py3-none-manylinux_2_17_i686.whl
Size 72.8 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
3b1790a23519a3070a9eb5023fb0bb3c220091ebd9771c72998e580e86ad4fee
BLAKE2b-256 checksum
How to use checksums
18828c708efd3970e1ebb3c41064459857068cc2c43593acb7fa4d27387f789c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / go_bin-1.27.2-py3-none-manylinux_2_17_aarch64.whl

Download URL go_bin-1.27.2-py3-none-manylinux_2_17_aarch64.whl
Size 70.9 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
b71e337c5fc20abe808c752cf1108fb678e0afc5f75bb8f1e9690df10e840a4f
BLAKE2b-256 checksum
How to use checksums
d03a9c2062ccaa2da2bf9fc087592b0a66e17afa106c88691de77449f5462cdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / go_bin-1.27.2-py3-none-macosx_11_0_x86_64.whl

Download URL go_bin-1.27.2-py3-none-macosx_11_0_x86_64.whl
Size 75.6 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
c342644872537cc2fbbd7af9f8fe45a2bcf6ce05d9fbef9637b138519774159a
BLAKE2b-256 checksum
How to use checksums
de0df36d77f281a64e60934b552c19ecafb78bd41704ec9a4eafaaf5640059b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / go_bin-1.27.2-py3-none-macosx_11_0_arm64.whl

Download URL go_bin-1.27.2-py3-none-macosx_11_0_arm64.whl
Size 72.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4c0defb748d753bec439131c97df74337679728b692493baa0a45ed44d334abf
BLAKE2b-256 checksum
How to use checksums
b351344bb5d9c0ba663695ac80a58d247c9ec75e951c788ec11ef5d0310b79ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page