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

Uploaded Python 3Windows ARM64

go_bin-1.26.0-py3-none-win_amd64.whl (71.2 MB view details)

Uploaded Python 3Windows x86-64

go_bin-1.26.0-py3-none-manylinux_2_17_x86_64.whl (70.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

go_bin-1.26.0-py3-none-manylinux_2_17_aarch64.whl (66.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

go_bin-1.26.0-py3-none-macosx_11_0_arm64.whl (67.9 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

go_bin-1.26.0-py3-none-macosx_10_12_x86_64.whl (71.1 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: go_bin-1.26.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 67.5 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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.26.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 79dc4095305b4dc938c08b351d276427be3dceada41c52f9b52ea1710587ce9e
MD5 f0935023179218d0211d58d0a1dc55c3
BLAKE2b-256 f94d721536802a81a1c79dbd9cd6711bdcfdb408a1f69e6b03c764dab5b14d54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.26.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 71.2 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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.26.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 11b7ea43ea65328651878912d5b111a4ebc7c3b19ddb7b22f5c0db639eefa286
MD5 279dc7260ccf40f453513523a7b371d2
BLAKE2b-256 04c67d1f4681875b477ab01c3358d8fb2b1c033cc95ff8fa46faf52358658a86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.26.0-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 70.2 MB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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.26.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 cc87699f9324b7daff74d31645ff71d685e15bd0687c7bbafff3334255bdbad4
MD5 8dbb54d39b972c852aff0f707a0b5a07
BLAKE2b-256 4a245187612ea40008ce5f241317d42b7d50fa4f4f4286d1509be8db9c66cb75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.26.0-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 66.9 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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.26.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 548a177fdfb1fcf9c723252dec63b41da345563fce3910e8bb706e16f01c3701
MD5 e853bd4d945f23ebfde8b4a94b3b8fec
BLAKE2b-256 5fc6b6666a0d72f6095c56b2fc37126ab056a66af6e676f270147372419d86d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.26.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 67.9 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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.26.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a248a9e844d4f13279cda1c6481bb6477aa2c0ec9edfe811c08b51c29f2fc17c
MD5 651b5d6cc21fec25e694b4acbb646ac1
BLAKE2b-256 f0cc545b2075e85a9a13ee99e5d082cf9bc88b1578f3ca8a06e2c45484631ba9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.26.0-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 71.1 MB
  • Tags: Python 3, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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.26.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b9f4a8e2ce6efeef48b42943f05e8ab483363ada02235df7b5292fdd181fdc63
MD5 811586dcb97b40093121f5d2a42ecf96
BLAKE2b-256 5a8fd8239610c62d62884048032172bbb9213d0a5cc5287795894b0899639fa7

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