Skip to main content

sqlc-bin

Unofficial. This is a community-maintained packaging project. It is not affiliated with or endorsed by the sqlc authors. Please file issues about this package here, not against sqlc-dev/sqlc.

sqlc as a pip-installable package. Ships the unmodified upstream release binaries, so no Go toolchain is required.

sqlc generates fully type-safe code from SQL. This package exists so Python projects (and anyone without Go installed) can get the sqlc CLI straight from PyPI and pin it like any other dependency.

Installation

# with uv
uv add --dev sqlc-bin        # as a project dev dependency
uv tool install sqlc-bin     # as a global tool

# with pip
pip install sqlc-bin

# with pipx
pipx install sqlc-bin

# run without installing
uvx --from sqlc-bin sqlc version

Usage

Exactly like a go installed sqlc: the sqlc command is on your PATH.

sqlc version
sqlc init
sqlc generate

It also works as a Python module:

python -m sqlc_bin generate

See the sqlc documentation for everything the CLI can do.

Supported platforms

OS x86_64 arm64
Linux (glibc and musl)
macOS 11+
Windows

Each platform gets its own wheel with the matching binary inside; pip/uv picks the right one automatically. On any other platform, installation falls back to the sdist, which downloads the binary for the host at build time (and fails clearly if sqlc doesn't publish one).

Versioning

The package version tracks the sqlc version: sqlc-bin==1.31.1 ships sqlc v1.31.1. Packaging-only fixes are published as post-releases (1.31.1.post1) containing the same binary.

How it works

  • Wheels bundle the unmodified binaries from sqlc's GitHub releases. Nothing is rebuilt, patched, or recompiled.
  • Every downloaded archive is verified against sha256 checksums pinned in checksums.json before packaging.
  • The sqlc entry point execs the bundled binary

Development

uv sync                                          # set up the dev environment
uv build --wheel                                 # build a wheel for your platform
SQLC_BIN_TARGET=windows_arm64 uv build --wheel   # cross-build for another target
uv run --with dist/*.whl pytest                  # tests run against an installed wheel
uv run --no-project scripts/bump_sqlc.py         # update to the latest sqlc release

Releases are built and published to PyPI by GitHub Actions (.github/workflows/release.yml) on version tags, using trusted publishing. A daily workflow checks for new sqlc releases and opens a bump PR.

License

The packaging code in this repository is MIT-licensed (LICENSE).

sqlc itself is a separate project by its own authors, licensed under the MIT license — see LICENSE-sqlc (Copyright (c) Riza, Inc.), which covers the bundled binaries and is shipped inside every wheel. "sqlc" is the name of the upstream project; this package is not affiliated with, endorsed by, or sponsored by the sqlc authors.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlc_bin-1.31.1.post1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sqlc_bin-1.31.1.post1-py3-none-win_arm64.whl (13.7 MB view details)

Uploaded Python 3Windows ARM64

sqlc_bin-1.31.1.post1-py3-none-win_amd64.whl (15.4 MB view details)

Uploaded Python 3Windows x86-64

sqlc_bin-1.31.1.post1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl (15.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64musllinux: musl 1.1+ x86-64

sqlc_bin-1.31.1.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl (13.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64musllinux: musl 1.1+ ARM64

sqlc_bin-1.31.1.post1-py3-none-macosx_11_0_x86_64.whl (15.9 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

sqlc_bin-1.31.1.post1-py3-none-macosx_11_0_arm64.whl (14.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file sqlc_bin-1.31.1.post1.tar.gz.

File metadata

  • Download URL: sqlc_bin-1.31.1.post1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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 sqlc_bin-1.31.1.post1.tar.gz
Algorithm Hash digest
SHA256 a898b2e79f49615bb96d6402b36c90ef65c81f1744568f9376eb9f3be25452af
MD5 536cf9f557e7c857adc5c01662be2a14
BLAKE2b-256 294e62944acbd5c4a4773aa27e937484602b2f7a7b6d678a5c51982832bada69

See more details on using hashes here.

File details

Details for the file sqlc_bin-1.31.1.post1-py3-none-win_arm64.whl.

File metadata

  • Download URL: sqlc_bin-1.31.1.post1-py3-none-win_arm64.whl
  • Upload date:
  • Size: 13.7 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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 sqlc_bin-1.31.1.post1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 b59d93bab220ac0d029a95df5bbb846a6a21c125631a15209ecdaa7ab7b7a1dc
MD5 99c2fa012417073dc1d0bbdeb11e78de
BLAKE2b-256 893776f2bea89b55bef435df507ac8f88583f4c85ef0eb345b3f730e269ae9c8

See more details on using hashes here.

File details

Details for the file sqlc_bin-1.31.1.post1-py3-none-win_amd64.whl.

File metadata

  • Download URL: sqlc_bin-1.31.1.post1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 15.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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 sqlc_bin-1.31.1.post1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b4befd2178659e59237a4021455c20c85724a76d77ea23e8aabf20c0ec4ff1a8
MD5 520ccb0d86583bffcce949b9e2061539
BLAKE2b-256 1c5a15fa71eb49079305beb9ff94316fa21aef8243b7c9a2f977744c5ca52afb

See more details on using hashes here.

File details

Details for the file sqlc_bin-1.31.1.post1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl.

File metadata

  • Download URL: sqlc_bin-1.31.1.post1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 15.1 MB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64, musllinux: musl 1.1+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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 sqlc_bin-1.31.1.post1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 0547da025ecd2136e5700f56e72194c227779a4843a3f4dd297ceed0f119557e
MD5 0b56aa2ee56c6df58093e37b49f68a1a
BLAKE2b-256 1e9c504173c47e63c831c5a8611319782526daa0b25324efa5b637104c5c78db

See more details on using hashes here.

File details

Details for the file sqlc_bin-1.31.1.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl.

File metadata

  • Download URL: sqlc_bin-1.31.1.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
  • Upload date:
  • Size: 13.6 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64, musllinux: musl 1.1+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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 sqlc_bin-1.31.1.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 55307be3b16c4a43a021ba04203c2033c8fcd493722d039b5491942827fadc0f
MD5 322d554491bb6afe9dc4dae8f25b34cb
BLAKE2b-256 8685a09c3fb79953cd7875eeb6a96313d6a68894e562284a84750d498a2f2a27

See more details on using hashes here.

File details

Details for the file sqlc_bin-1.31.1.post1-py3-none-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: sqlc_bin-1.31.1.post1-py3-none-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 15.9 MB
  • Tags: Python 3, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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 sqlc_bin-1.31.1.post1-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 38f20286deb026d3de26025a0ca06f947d8551f6e45a88f3f629eb4a30b57921
MD5 89ba1c6be7c1958f4e63d2d2c90e38d4
BLAKE2b-256 e2fc5768b57c0626eea11feb18c2ee866e069c034e5fc1ac8668dc12a11d46c5

See more details on using hashes here.

File details

Details for the file sqlc_bin-1.31.1.post1-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: sqlc_bin-1.31.1.post1-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 14.5 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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 sqlc_bin-1.31.1.post1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7493fdc9dd16a330596fbdb1e91575b088b0a7e1b28e1cf510682e69937d133b
MD5 9c40e9747246c872e90205c02b553a61
BLAKE2b-256 f9277fd250116ee674541a23ba1fae9eeff0689b3050fe64f05ebf0463993091

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.31.1.post1 This release

7 files

1.31.1

7 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page