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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

go_bin-1.25.1-py3-none-manylinux_2_17_x86_64.whl (63.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

go_bin-1.25.1-py3-none-manylinux_2_17_aarch64.whl (60.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

go_bin-1.25.1-py3-none-macosx_11_0_arm64.whl (61.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

go_bin-1.25.1-py3-none-macosx_10_12_x86_64.whl (63.7 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: go_bin-1.25.1-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.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 5370f2a790b006b6f47afd7d20ea30622b47e7bff5979672fe14dfe47fc751d9
MD5 ad5105eda521b8d08e8b66dd8036b199
BLAKE2b-256 8857e57ea227dc6732f47af60d5cf955cb896fdc45307356dac68125accb9fd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.1-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.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1c31274cce0086497696498cf6b70acdd53f9479b5288b3f2823e1c1b738d680
MD5 07b14c7bb574d6a7854c52f54d9d381a
BLAKE2b-256 8e237ef8087c81964211ca1ab4d2580617f5ceb5d9a2b50344b86e6e6a264ff3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.1-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 63.0 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.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 795b3691ec9fd313bedf00f0262906568a26fd416f03962f0e0e4aa05094ad48
MD5 900a2eb5433c33c04c25aae3731f1c67
BLAKE2b-256 9fd6dfbc8ae8fad58b6c43e0eb85bbdb4052754468d14ecc2505d3feb391868d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.1-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 60.4 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.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 5a77e27b78b2da6f7125a3f29954e3f3f98629f23f65d9053803edf6e2d16cd0
MD5 8aa2697f46bdf59c410351d2e9069870
BLAKE2b-256 901d38775c88c89a5f961c1b8dd8333829a68c3763b65cdeed3082cc89f97dd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.1-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 61.1 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.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce4669133ff6d2a06f1100a650a80a3e7498f8c1fddedfb7246890c8451e1e4c
MD5 86678656d3597334a5c3977a53a09157
BLAKE2b-256 1637b64bb9e4e99cc67065172362b492deb871b83d3317422a44bd2bf0db0654

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.25.1-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 63.7 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.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e4707b9e77b5a1881ba4a4f5ff710c439581b3fb3e49b1230ff135c0a068ef58
MD5 e96955f182ff0bc14245ad8d1a387be2
BLAKE2b-256 037f2eb732471e9ee05b8bcd60b000a393d93f7b25cef97ec3c5aec1f2591467

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