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.0rc7

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.0rc7
File Size Uploaded Provenance Actions
haybarn-2.0.0rc7.tar.gz 16.8 MB With provenance Details for haybarn-2.0.0rc7.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for haybarn 2.0.0rc7
File Actions
haybarn-2.0.0rc7-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for haybarn-2.0.0rc7-cp312-abi3-win_amd64.whl
haybarn-2.0.0rc7-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for haybarn-2.0.0rc7-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
haybarn-2.0.0rc7-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.0rc7-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
haybarn-2.0.0rc7-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for haybarn-2.0.0rc7-cp312-abi3-macosx_11_0_arm64.whl
haybarn-2.0.0rc7-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for haybarn-2.0.0rc7-cp311-cp311-win_amd64.whl
haybarn-2.0.0rc7-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for haybarn-2.0.0rc7-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
haybarn-2.0.0rc7-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.0rc7-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
haybarn-2.0.0rc7-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for haybarn-2.0.0rc7-cp311-cp311-macosx_11_0_arm64.whl

Total release size: 174.8 MB

Release files / haybarn-2.0.0rc7.tar.gz

Download URL haybarn-2.0.0rc7.tar.gz
Size 16.8 MB
Tags Source
SHA-256 checksum
How to use checksums
165db9b235c071689f0262b8ad4767339acc3a2f82ed10af66dad1c8d5183005
BLAKE2b-256 checksum
How to use checksums
83c67550b6855b2bedb60fb87016971b5ee618d4864acbff82ea524f3204d9a6
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 25, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc7-cp312-abi3-win_amd64.whl
Size 15.4 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d4cb4b1dbd9b186e436d48938db6615475af4cf0d9cd6a2bf3b658796ea35d55
BLAKE2b-256 checksum
How to use checksums
6b17c2fdef347dd0047c81d9de90b1a1903855757092d4a6214b2ce71ddb6e7f
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 25, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc7-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
67256968d8a9527ec797ef795f3b1d63c97174303b81f39147049f21c4ecd0f1
BLAKE2b-256 checksum
How to use checksums
2724dc859c6f107b8a63feafbd3caf15219ddd4f3cb67ddeaebd9639c30d95ff
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 25, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc7-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
3534ef9e1bbe07fdd20006d3fdcb7a58ffc1b1d753d35f0bdbf8396a63efcc9a
BLAKE2b-256 checksum
How to use checksums
798ab75bda24d3772d3f6d6713a5bcaea6e9465b0d2a0422e5d8755fbb918979
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 25, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc7-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
371d0f2978b24493abd77e20664178b520c1afa21c98a85327508ccf02ca39a9
BLAKE2b-256 checksum
How to use checksums
77e6b0a1f0d2c16a337585370b3976a9fa0c3f018115338211d889d36346c793
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 25, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc7-cp311-cp311-win_amd64.whl
Size 15.4 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
101e6eb80872cc5bcb2ad502de08852d01762e36c04489e5e96850184d1c8932
BLAKE2b-256 checksum
How to use checksums
e2cb563a7e419be6fdc2a9586f7d069fc10a2afb90af6f6a31462175196cb264
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 25, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc7-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
4923ffa22925f9b8a83ef9505eafc2a757b5558e28fb98ee84d9f8a536da283e
BLAKE2b-256 checksum
How to use checksums
418c644f019832d800046fb5b9d2e37b8a2aeb1df2da5d92ce83f7118606f8d0
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 25, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc7-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
7f4d150a0b7fcd9634f97729659f11cf6c585b52d9e9b0696803edd048895aa7
BLAKE2b-256 checksum
How to use checksums
a6582a68bd50bbf8932a9cf8482163b434ad2e71bcf3389a55163527fb57ee59
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 25, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc7-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
096f391e601e564e0d30a7d2b69a4c9e1c4fe19b857863118e46fad4677d279c
BLAKE2b-256 checksum
How to use checksums
f21c20dc810e9bd39d4e250dac1682397f1adb14ba65886da74a5a97b5437949
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 25, 2026.

Transparency log

Security for haybarn 2.0.0rc7

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.0rc7.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 25, 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