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

Uploaded Python 3Windows ARM64

go_bin-1.24.11-py3-none-win_amd64.whl (83.4 MB view details)

Uploaded Python 3Windows x86-64

go_bin-1.24.11-py3-none-manylinux_2_17_x86_64.whl (81.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

go_bin-1.24.11-py3-none-manylinux_2_17_aarch64.whl (77.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

go_bin-1.24.11-py3-none-macosx_11_0_arm64.whl (79.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

go_bin-1.24.11-py3-none-macosx_10_12_x86_64.whl (83.0 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: go_bin-1.24.11-py3-none-win_arm64.whl
  • Upload date:
  • Size: 78.8 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.24.11-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 46e83ad2ce3db781c5435d13c4a3be56675faea72b7c99b630aca6f13e0d9122
MD5 743667858d636c675e61a3083ea31eaf
BLAKE2b-256 ece80a46c218ddbc4a53fc7eed0eed569d883a484af198e907ecc3bf32a5b322

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.24.11-py3-none-win_amd64.whl
  • Upload date:
  • Size: 83.4 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.24.11-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c2e656709ab11916cec08a22f100c76cdac13f571b5e484326f898934106418e
MD5 ff9ca8abca980f4204a99ae0c3eee3c0
BLAKE2b-256 6c7c3627abb22b0e4764f191a8699b13a050d51c3e6429359c0441bb935fdb80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.24.11-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 81.6 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.24.11-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2ab7f2d63a1a9c39e8981af733077911b882482ac5a5f38d5bc4c7c3e1ddddd2
MD5 54eec85d5db9ccdf032745e8c4e81b98
BLAKE2b-256 c05386bbad134a1140b2a3a2e660ec1d04e6c7bfadde1c440306f51f5ad50d8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.24.11-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 77.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.24.11-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 b33ef995911ae9886512f19eff0f20c8aeb33b3ac80aca4e2fd0a3441a5dcc85
MD5 eb4740db26939a0c2bc027bb418c0199
BLAKE2b-256 3e58f8eeda52d791d43f60ce06804106e8431ff256f7bc48aaff9772887061ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.24.11-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 79.0 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.24.11-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65cbda66dd25e36413b2929351714ec50b7a9085a31d899bd5948a0c37bc0eca
MD5 60450811c12d77e334c319fa07741aeb
BLAKE2b-256 a80d9a316a21df238ee7dba7840e6a666a9513e784ea2e974d80ea185c028d2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: go_bin-1.24.11-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 83.0 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.24.11-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 032c81bd2f0490ea7a06131a7fcee4cf40428b6309b198d20dd3f9f3fca861e5
MD5 898914d6c6d34c50001d8e686bf16e5a
BLAKE2b-256 50d252d2efab0e944f078fa5ec07a6b3c6ba184450e68ca565f045a57507da81

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