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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

go_bin-1.25.5-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.5-py3-none-win_arm64.whl.

File metadata

  • Download URL: go_bin-1.25.5-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.5-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 9c8d2932aadffeebb7616f32722f9b2b4e918c9122cb74341c1b0146c8462b55
MD5 ba1c3b9d0eee90cf8d5713f4faba5844
BLAKE2b-256 dfc2f61c9b8b5c781d6574469b86724ce5f2170ed130adc9c49a8f9817e7f48a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.5-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.5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 cf167843cb86f9c40422acc15330cfdad6bc29cea8b435aeb5b686db21df01cd
MD5 426867ebf776085cdcc19de447adfa8b
BLAKE2b-256 e090d4fd9f06b552202efef62f96d55987b726770a504ea5d9e975da314eae8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.5-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.5-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5eea472c626eb8ea902c4cbad0edf2b3e09e80d03357f166867ea81e8e049c06
MD5 0484c2810609af844abadd437f1e8244
BLAKE2b-256 a3bc509a9635bbb00d3e2242d00934b3d87725dbcc23ec910f757931b1219c10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.5-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.5-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 a0f4cb43acee2d17a10eefa16f7b6f7273a20e4b9054603bae0e73b0c86c927c
MD5 72bc2c04a69ad96522aec340bd361b6c
BLAKE2b-256 4a348358ba0407064cf58a23aac6ffed1b94b03c71dfec44de23244d89f2ea8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.5-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.5-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 002205ed48bf3712f46b69eba81ccdb826feaa75e13b845864f1aae272126d56
MD5 4768194839f6d3ae5a953a97dc313947
BLAKE2b-256 95860b5fe6265224d88e5a118b058ef5754420111962d12553d0a94655c7a8ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.5-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.5-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 da6f08bc5b29206a1974e36015b438d5ae7f4f4de12831db22c1ad21c50068dd
MD5 fd7f019504bcc6bc68079246e5492e9d
BLAKE2b-256 a083c5f02f1a1f57db8944b2807b5e17c268de821f5d0a2f5cdd42ef2b7d8f08

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