Skip to main content

Prebuilt golang binary

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

go_bin-1.25.4-py3-none-win_arm64.whl (61.0 MB view details)

Uploaded Python 3Windows ARM64

go_bin-1.25.4-py3-none-win_amd64.whl (63.9 MB view details)

Uploaded Python 3Windows x86-64

go_bin-1.25.4-py3-none-manylinux_2_17_x86_64.whl (63.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

go_bin-1.25.4-py3-none-manylinux_2_17_aarch64.whl (60.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

go_bin-1.25.4-py3-none-macosx_11_0_arm64.whl (61.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

go_bin-1.25.4-py3-none-macosx_10_12_x86_64.whl (63.8 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file go_bin-1.25.4-py3-none-win_arm64.whl.

File metadata

  • Download URL: go_bin-1.25.4-py3-none-win_arm64.whl
  • Upload date:
  • Size: 61.0 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}

File hashes

Hashes for go_bin-1.25.4-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 c97f8e0dbf0c821b644e0dba39ddaa9d01b654840c730dbf35b615afa3ff29f7
MD5 8a3bfa96ba5cd3991bcae36d2a5fdc4f
BLAKE2b-256 e667a231bb518b4c1f8ad3bd4b6e9c43bd3331cd8716a8ac6219e8a1eead6bd5

See more details on using hashes here.

File details

Details for the file go_bin-1.25.4-py3-none-win_amd64.whl.

File metadata

  • Download URL: go_bin-1.25.4-py3-none-win_amd64.whl
  • Upload date:
  • Size: 63.9 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}

File hashes

Hashes for go_bin-1.25.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 55fe4084d1c88a4d5db35eeda77d9b2fb6d565d173e8a8b0ecd85837b92317ee
MD5 bebec5b89058c4c6f25693d5329f8c2a
BLAKE2b-256 4aaa839e510982d68b77eb2bed1de65652ecec3db93764dede6a7c34e5ced477

See more details on using hashes here.

File details

Details for the file go_bin-1.25.4-py3-none-manylinux_2_17_x86_64.whl.

File metadata

  • Download URL: go_bin-1.25.4-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 63.1 MB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}

File hashes

Hashes for go_bin-1.25.4-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 02acc68db8d96e7fdad578e72b49af18170158219583b26b54ac104b107c4b36
MD5 def956b0e61db4d51b974b9fdffbf108
BLAKE2b-256 e0a01ca1e6b4606ee1f4b48159f316ca6db6b858a89a0a705f79c7f50c6130e3

See more details on using hashes here.

File details

Details for the file go_bin-1.25.4-py3-none-manylinux_2_17_aarch64.whl.

File metadata

  • Download URL: go_bin-1.25.4-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 60.5 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}

File hashes

Hashes for go_bin-1.25.4-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 6d343da4635dc12486036b14c8784c2e3da473434ecc1fec20b84892c7c8264e
MD5 f95f478fb8984467e83d3b2c54079145
BLAKE2b-256 c6592f40cbe195673fcf4c1ce77bd44ef6c7d79ff8d8944abb3f60641b05302d

See more details on using hashes here.

File details

Details for the file go_bin-1.25.4-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: go_bin-1.25.4-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 61.2 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}

File hashes

Hashes for go_bin-1.25.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a90771779ec9301283d953eebe1f2ae0c188c0bb0a8bc7389baafbc1f4fb2f7
MD5 9d21f9c8732afa096774859075ab3895
BLAKE2b-256 a8a9a2ac2634ee78a9bf2d40e6256ad56b81148a869ffff6155bc21029efd71a

See more details on using hashes here.

File details

Details for the file go_bin-1.25.4-py3-none-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: go_bin-1.25.4-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 63.8 MB
  • Tags: Python 3, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","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}

File hashes

Hashes for go_bin-1.25.4-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6b8dd1ddb02111689f0254aee65cc824b2fcbb5641f02ecac103515ce1401a8c
MD5 1088ca86f4dc38eec0808397a301f55f
BLAKE2b-256 f9995e94912807ac09372f34b9886926ee93f128c62960c752e0efb2bf4da9a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page