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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

go_bin-1.25.2-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.2-py3-none-win_arm64.whl.

File metadata

  • Download URL: go_bin-1.25.2-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.2-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 2020a9515d244b06f9c6740e5f3e69839fa5d7db1b962a5bdc772d0a00e1a742
MD5 aa070a8f6d588e7d852ad5dc7b64d8a7
BLAKE2b-256 ba8e6c5731d3ace1999a7b0e4b2836992c1b78bce05fe1d3d6454c57c8ea8dbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.2-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.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c6899e3745ed7511ded3fe92e65a711a51d5af2176dec8d16671d5b9460fae52
MD5 fcd4b309e0ffad8e6902320f1247e618
BLAKE2b-256 5e7c11c42e89097b4aa0a821bda9e08392001f70b793f60896653b8cce294b0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.2-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.2-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 638b258cdf3fbcfe13c8e9fc4fd21020c948dcfb01420d5b3421aa6344766bda
MD5 f4e0fe212e16f9ea781451aac5198a17
BLAKE2b-256 ddf82cbce24a1e2018c92efc4c8ba2b9750b35a3027179e3c6a581863c04cc93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.2-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.2-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 69ed5f61f5ed34d219e43c705479ee807e622a1c9b8013725144011c41e1962c
MD5 b7f41b4123ddec9bf9c8910123cd6b88
BLAKE2b-256 d21b781bc5d08c4ebe5e32258c56de6c651850ee49b8713b639ef8eb4a9f6525

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.2-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.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ebb615aba5ec8a08c7091f91bc0f3ee98a0d1f146aac13794538b0d2b1f0458
MD5 2aed274ef12e0b7291a4fc6c494ee258
BLAKE2b-256 57c7db79885b0f33e1bb4f6c039e25b7aa63e70ee1fe56d6d7f396c905bd9877

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.2-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.2-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 be8a025ee6d19f4539677670e3e116a3fb54ebde741931d238ec801c0e475004
MD5 20ffca4e96c31200e84b481bef1a9c5e
BLAKE2b-256 c66361650f6967b6a3ed3a0110d578d9c64ba4e1047a7e3616a61bf985b2d699

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