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.1

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.1
File
go_bin-1.27.1-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details
go_bin-1.27.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
go_bin-1.27.1-py3-none-win32.whl Python 3 none Windows x86-32 Details
go_bin-1.27.1-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
go_bin-1.27.1-py3-none-manylinux_2_17_s390x.whl Python 3 none Linux glibc 2.17+ IBM System/390x Details
go_bin-1.27.1-py3-none-manylinux_2_17_ppc64le.whl Python 3 none Linux glibc 2.17+ PowerPC 64-le Details
go_bin-1.27.1-py3-none-manylinux_2_17_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details
go_bin-1.27.1-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
go_bin-1.27.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
go_bin-1.27.1-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 732.7 MB

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

Download URL go_bin-1.27.1-py3-none-win_arm64.whl
Size 71.5 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
7224bf2a1ceee83fb93ac4998333866ab6b2dff28b78fc47dd91b63a2f3bbe38
BLAKE2b-256 checksum
How to use checksums
a4f6a741d523ec6d24ef82d0d2788133e5b06fb9267bddbe8c69b685f0054350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.1-py3-none-win_amd64.whl

Download URL go_bin-1.27.1-py3-none-win_amd64.whl
Size 75.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
be70122d00f58b442fd2b0c4a6c3ca609ba83ff5c5a55a35f916e2b9bd1138e8
BLAKE2b-256 checksum
How to use checksums
37445f04a56562087f85d20e0b15c2fe10c71e71d45b34e5e752d06973c809d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.1-py3-none-win32.whl

Download URL go_bin-1.27.1-py3-none-win32.whl
Size 74.3 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
7602e39d150784e1fbc7a8756ed7aba5ddf9d77658dff0f1598efe38b861d5cf
BLAKE2b-256 checksum
How to use checksums
a2a0c8fc5f2fdfbff9b6805c697b075097add8070d3ce709225864fd769a2ded
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.1-py3-none-manylinux_2_17_x86_64.whl

Download URL go_bin-1.27.1-py3-none-manylinux_2_17_x86_64.whl
Size 74.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
c468faae0fa7c2a1db5216ceaccb336032dad401e5885f63e41742092109a152
BLAKE2b-256 checksum
How to use checksums
1340c1164692af7407355919decf0d76e644588f327c91d6f021c17698ac705b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.1-py3-none-manylinux_2_17_s390x.whl

Download URL go_bin-1.27.1-py3-none-manylinux_2_17_s390x.whl
Size 74.2 MB
Tags Linux glibc 2.17+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
d05b252f68ef41a2462fbcde8d52ff83fec7f3674562beec34f8e87bb4391d54
BLAKE2b-256 checksum
How to use checksums
56cd711aa2be467c6a7fadba305dae3bdb69adc7a1a473df5564d08304912b2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.1-py3-none-manylinux_2_17_ppc64le.whl

Download URL go_bin-1.27.1-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
df52545b6af369f0127706e63f409c912d5b74747d8d2f289b43f0a21bea7b05
BLAKE2b-256 checksum
How to use checksums
49e6a488f8d669856e1d4d101beab49e1e9a9506fec1c574a2fee7a96aa7dbd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.1-py3-none-manylinux_2_17_i686.whl

Download URL go_bin-1.27.1-py3-none-manylinux_2_17_i686.whl
Size 72.7 MB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
86d867d0736befa008ac3714e01bd5ad21ae473dd5bb4ed76761cbe392245494
BLAKE2b-256 checksum
How to use checksums
f249a08db20d7b88178aed4e8c366aa136501b4528cc6fff2f63cf1420c9e43c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.1-py3-none-manylinux_2_17_aarch64.whl

Download URL go_bin-1.27.1-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
f20c36a4ea14f35af41ed8f8739aa913990a4e336e5372da3f205c00e26d226c
BLAKE2b-256 checksum
How to use checksums
89979381fd5394f4033cbb5ee4089d4862f2ad91e5a8fb7ece3afd009b230971
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.1-py3-none-macosx_11_0_arm64.whl

Download URL go_bin-1.27.1-py3-none-macosx_11_0_arm64.whl
Size 71.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
378316e1e4887729051b1992ba2bf1bad32859a98d642f174ec702fa238d710d
BLAKE2b-256 checksum
How to use checksums
994d7f0b07df1a5dba383d6cf5d9d8d0c70490fb992d6d3796af359686b9547b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.1-py3-none-macosx_10_12_x86_64.whl

Download URL go_bin-1.27.1-py3-none-macosx_10_12_x86_64.whl
Size 75.6 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4959099cc9a200e2e3deddbc608d124ddb25130e9097d1a4666d1d7bd1e2f4dd
BLAKE2b-256 checksum
How to use checksums
6fdc2140e10f84ecd1c0c996bfb8168cae4633f12fab9e1d5c9dd12d8b73b054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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