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.3-py3-none-win_arm64.whl (61.0 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

go_bin-1.25.3-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.3-py3-none-manylinux_2_17_aarch64.whl (60.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

go_bin-1.25.3-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.3-py3-none-win_arm64.whl.

File metadata

  • Download URL: go_bin-1.25.3-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.3-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 bd10170966ab82d979ca82e43837dbc1db82cad653f4c83b92ede811d10b1846
MD5 c5b21c775bbede3e26d9676877f998f6
BLAKE2b-256 b884e455f567ff23bcfc2f43c1794c20bb6f4b1e8ca118687d838272290f02f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.3-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.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c2c69d075e52680dc3afa44ae9a05f849c05e0e3a739d8a4bbff0f57d8fea7d0
MD5 e409574ab10350593d58be53f2eeae2b
BLAKE2b-256 a153f103a16ec7b32eaeba7314ee05b5a9ba72a2826ee3425523eb031e667fa3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.3-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.3-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3ac5bace23a8da2419c2bffd7d964307bfcb4723b4b441da55ccdf8f0fc2b0d8
MD5 b48d348387f663e197cf207b7b3a6d61
BLAKE2b-256 25c5f4176581c484e43fc2e7996e3ffc0d6e005c2011288a239752f4f7d80ce8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.3-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.3-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 f52c9ea7f738810b1dd1c3894be0d6bffdc7fcbbeafe3992807eae40dfdc3d32
MD5 2c16344ca2e87239e08c506a64cea97e
BLAKE2b-256 25502fd2c6020ee76c74d66d34f9f97ab2463f3e51137a527567e5c712e98513

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.3-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.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db918408cbb850bec8475aa359d7b7dd49788426da2bb11ec6049bceabe5855f
MD5 4fd140064f1b24db59c596240dd09cce
BLAKE2b-256 beb64d04ae7dd6af154ed4aaa971e10136e6137e4d1ed75dd53a147a0e30a586

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.3-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.3-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c6448b3eac3e5b058dcc4d2f4ac2daba36230ae6d64050a88fae41bd08eb86c1
MD5 bfc6f5f48e0a205ade01d1929843fffa
BLAKE2b-256 61e4abe60d97dcf3276b0b1dc6b5745663c378af83a75630e0db9442d179cbef

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