Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Haybarn — Python client

The Python client for Haybarn, an independent derived distribution of DuckDB, powered by DuckDB.

Published by Query Farm LLC.

Haybarn is not affiliated with, sponsored by, or endorsed by the DuckDB Foundation or DuckDB Labs. DuckDB is a trademark of the DuckDB Foundation. See NOTICE.

This package is a fork of the DuckDB Python client, rebranded as haybarn. The public API is identical to DuckDB's.

Installation

pip install haybarn

Usage

import haybarn

haybarn.sql("SELECT 42").show()

Migrating from DuckDB

Because the API is identical, existing DuckDB code needs only a one-line change:

import haybarn as duckdb   # the rest of your code is unchanged

For third-party code you cannot edit, there is an opt-in compatibility shim that makes import duckdb resolve to Haybarn:

import haybarn.compat   # registers haybarn as the `duckdb` module
import duckdb           # now this is Haybarn

The compiled extension module is renamed (_haybarn), so a haybarn wheel and a genuine duckdb wheel can be installed side by side without conflict.

Building from source

See CONTRIBUTING.md and AGENTS.md for the build workflow. In short:

uv sync --only-group build --no-install-project
uv sync --no-build-isolation -v --reinstall

The DuckDB engine is built from the external/duckdb submodule.

License

MIT — the same license as DuckDB. The upstream license is preserved in LICENSE; see NOTICE for the list of Haybarn modifications and trademark attribution.

Metadata

Release files for haybarn 2.0.0rc9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haybarn 2.0.0rc9
File Size Uploaded Provenance Actions
haybarn-2.0.0rc9.tar.gz 16.8 MB With provenance Details for haybarn-2.0.0rc9.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for haybarn 2.0.0rc9
File Actions
haybarn-2.0.0rc9-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for haybarn-2.0.0rc9-cp312-abi3-win_amd64.whl
haybarn-2.0.0rc9-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for haybarn-2.0.0rc9-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
haybarn-2.0.0rc9-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for haybarn-2.0.0rc9-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
haybarn-2.0.0rc9-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for haybarn-2.0.0rc9-cp312-abi3-macosx_11_0_arm64.whl
haybarn-2.0.0rc9-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for haybarn-2.0.0rc9-cp311-cp311-win_amd64.whl
haybarn-2.0.0rc9-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for haybarn-2.0.0rc9-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
haybarn-2.0.0rc9-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for haybarn-2.0.0rc9-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
haybarn-2.0.0rc9-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for haybarn-2.0.0rc9-cp311-cp311-macosx_11_0_arm64.whl

Total release size: 174.8 MB

Release files / haybarn-2.0.0rc9.tar.gz

Download URL haybarn-2.0.0rc9.tar.gz
Size 16.8 MB
Tags Source
SHA-256 checksum
How to use checksums
4f666ad9a6542c83ee9fbbaa183be5035f4948fa6661276113406fa46e35aa39
BLAKE2b-256 checksum
How to use checksums
b5694c7ce6fd59e085d68062cc1a0473a8030d5554825a901741e9687a388db6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / haybarn-2.0.0rc9-cp312-abi3-win_amd64.whl

Download URL haybarn-2.0.0rc9-cp312-abi3-win_amd64.whl
Size 15.4 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ed33294c59bc24969de90192f85162a97dd3c2eda3807c64ab43d258eae2d538
BLAKE2b-256 checksum
How to use checksums
04f82fc29e5aa0a08b40a28e9e4dec5fbbc8fff1057333823101dd338aee7c8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / haybarn-2.0.0rc9-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL haybarn-2.0.0rc9-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 24.4 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
5156e6dac67eccc562dc8b225d3a2b56eb40c3932fa35ba602cad6bd90a2c2a7
BLAKE2b-256 checksum
How to use checksums
d97526e7990d8aff5efa725f2a15b4856f53654eee274f54ae73a94bd2bc2d66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / haybarn-2.0.0rc9-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL haybarn-2.0.0rc9-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 21.7 MB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
1305101c5231e52710216f486610c0faf8dc48be0b63682b4c6ec84562446b2d
BLAKE2b-256 checksum
How to use checksums
b97d8e55baab87ecf33f2731a751a153282a51bc7b037d8fb58f376b8628a734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / haybarn-2.0.0rc9-cp312-abi3-macosx_11_0_arm64.whl

Download URL haybarn-2.0.0rc9-cp312-abi3-macosx_11_0_arm64.whl
Size 17.6 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6c8cc621a0183142d96fe8a8d8076fa9d41bab32fc97fb9900182a82aae1ae75
BLAKE2b-256 checksum
How to use checksums
ee9dee30477dc84ead792a587baa1816ba246618c1b3edaa780d1b1aa1beaeba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / haybarn-2.0.0rc9-cp311-cp311-win_amd64.whl

Download URL haybarn-2.0.0rc9-cp311-cp311-win_amd64.whl
Size 15.4 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
a86bc162ee00fa429481e7739b0772b17d410d25e10f3c0b7b9ab9efbfbdcb9b
BLAKE2b-256 checksum
How to use checksums
2e869d20dc4a556a3b7397654eefed9b340fe112af78a998508cf5ed7415855e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / haybarn-2.0.0rc9-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL haybarn-2.0.0rc9-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 24.4 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
3806905915a24522f6c6e3ddf9fe17ed0c16cae38703b2e81c83d0c0041616f7
BLAKE2b-256 checksum
How to use checksums
c153b45d3736c34e2ead28dfa7c4a7983b5bfa04e132d5f5a97b7703777a717d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / haybarn-2.0.0rc9-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL haybarn-2.0.0rc9-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 21.6 MB
Tags CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
01f97dc7cb90d5c8527274bbb8ba89b4c6583b6a70dc4179d1ff07ffbb2bafd4
BLAKE2b-256 checksum
How to use checksums
ba78dd1df1415c83955034ebde9a5fd1713c9362e546f938d16b10460e481845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Release files / haybarn-2.0.0rc9-cp311-cp311-macosx_11_0_arm64.whl

Download URL haybarn-2.0.0rc9-cp311-cp311-macosx_11_0_arm64.whl
Size 17.6 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1f8f17eb5a68694793614af391bf26c9c2be5fd9c077d5e032e9d79f33d8f889
BLAKE2b-256 checksum
How to use checksums
9420145e4e16e57bd8691fb3ac2c7bcaffe7231d93920e9a13e3c678afa500b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for haybarn 2.0.0rc9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for haybarn-2.0.0rc9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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