{"id":51887194,"url":"https://github.com/rayakame/sqlc-bin","last_synced_at":"2026-07-26T23:00:45.322Z","repository":{"id":372891616,"uuid":"1310346532","full_name":"rayakame/sqlc-bin","owner":"rayakame","description":"The official sqlc binaries, pip-installable — no Go toolchain required","archived":false,"fork":false,"pushed_at":"2026-07-24T01:42:54.000Z","size":36,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-24T03:16:18.586Z","etag":null,"topics":["cli","code-generation","codegen","database","pypi","python","sql","sqlc","uv","wheels"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/sqlc-bin/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rayakame.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"rayakame","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2026-07-23T20:36:02.000Z","updated_at":"2026-07-24T01:42:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rayakame/sqlc-bin","commit_stats":null,"previous_names":["rayakame/sqlc-bin"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rayakame/sqlc-bin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayakame%2Fsqlc-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayakame%2Fsqlc-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayakame%2Fsqlc-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayakame%2Fsqlc-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rayakame","download_url":"https://codeload.github.com/rayakame/sqlc-bin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayakame%2Fsqlc-bin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35862459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-24T02:00:07.870Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","code-generation","codegen","database","pypi","python","sql","sqlc","uv","wheels"],"created_at":"2026-07-25T22:09:22.471Z","updated_at":"2026-07-25T22:09:22.936Z","avatar_url":"https://github.com/rayakame.png","language":"Python","funding_links":["https://github.com/sponsors/rayakame"],"categories":[],"sub_categories":[],"readme":"# sqlc-bin\n\n[sqlc](https://sqlc.dev) as a pip-installable package. Installs the **official sqlc release binaries** — no Go toolchain required.\n\n[sqlc](https://github.com/sqlc-dev/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.\n\n## Installation\n\n```sh\n# with uv\nuv add --dev sqlc-bin        # as a project dev dependency\nuv tool install sqlc-bin     # as a global tool\n\n# with pip\npip install sqlc-bin\n\n# with pipx\npipx install sqlc-bin\n\n# run without installing\nuvx --from sqlc-bin sqlc version\n```\n\n## Usage\n\nExactly like a `go install`ed sqlc — the `sqlc` command is on your PATH:\n\n```sh\nsqlc version\nsqlc init\nsqlc generate\n```\n\nIt also works as a Python module:\n\n```sh\npython -m sqlc_bin generate\n```\n\nSee the [sqlc documentation](https://docs.sqlc.dev) for everything the CLI can do.\n\n## Supported platforms\n\n| OS      | x86_64 | arm64 |\n| ------- | :----: | :---: |\n| Linux (glibc and musl) | ✅ | ✅ |\n| macOS 11+ | ✅ | ✅ |\n| Windows | ✅ | ✅ |\n\nEach 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).\n\n## How it works\n\n- Wheels bundle the **unmodified official binaries** from [sqlc's GitHub releases](https://github.com/sqlc-dev/sqlc/releases).\n- Every downloaded archive is verified against sha256 checksums pinned in [`checksums.json`](checksums.json) before packaging.\n- The `sqlc` entry point `exec`s the bundled binary (POSIX) or forwards to it as a subprocess (Windows), so arguments, stdio, exit codes, and signals behave like the real thing — because it is the real thing.\n\n## Versioning\n\nThe 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.\n\n## Development\n\n```sh\nuv sync                                          # set up the dev environment\nuv build --wheel                                 # build a wheel for your platform\nSQLC_BIN_TARGET=windows_arm64 uv build --wheel   # cross-build for another target\nuv run --with dist/*.whl pytest                  # tests run against an installed wheel\nuv run --no-project scripts/bump_sqlc.py         # update to the latest sqlc release\n```\n\nReleases 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.\n\n## License\n\nThis packaging project is MIT-licensed. sqlc itself is [MIT-licensed](https://github.com/sqlc-dev/sqlc/blob/main/LICENSE) by its authors; the binaries are redistributed unmodified. This project is not affiliated with or endorsed by the sqlc authors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayakame%2Fsqlc-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayakame%2Fsqlc-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayakame%2Fsqlc-bin/lists"}