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

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

Built distributions (wheels)

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

Total release size: 174.8 MB

Release files / haybarn-2.0.0rc8.tar.gz

Download URL haybarn-2.0.0rc8.tar.gz
Size 16.8 MB
Tags Source
SHA-256 checksum
How to use checksums
8cb4533e086b9431da0d9deb004e7854ce142a342ec54e3e2bf1fa69b5c5fe59
BLAKE2b-256 checksum
How to use checksums
56b3469b6254fe2344cd28a5e56000ff5f33e04aae705b9a5f78592a7c10487a
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 26, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc8-cp312-abi3-win_amd64.whl
Size 15.4 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b88eacc2cd48ca33b273971132b083ff868cb07cbdd548f6a4baab78fa422065
BLAKE2b-256 checksum
How to use checksums
91b9ac616cd6f4cc485f2c66d6081bccf01929678613bb59ba8a16273acbf28e
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 26, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc8-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
c52265eac3ebea3332ae628bd08e1997b0bb2e4a7a2328bd6af19e916256e9fa
BLAKE2b-256 checksum
How to use checksums
8ebdec96545ae5f05dede525d6589b21fd2fccdf756faa72f9febe3dbdce3456
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 26, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc8-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
355bc56b2837c56dce72a859d35f75ba398e61a43c3d63a43af68d3f0001b7d5
BLAKE2b-256 checksum
How to use checksums
b0790a696727c4effbc64257328da302620f90f4d832cb51732158a33f31f101
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 26, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc8-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
c3879c9fec25770e5aeee559f1bbd74d65cb18a4d67408c3ffc9a909cade73ce
BLAKE2b-256 checksum
How to use checksums
803bdb081e6f521aa1572d8f86aa7c609bbcfbf3216f54f4f856fe4a5a0480b6
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 26, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc8-cp311-cp311-win_amd64.whl
Size 15.4 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
367c9348a6337406a7f728166e69459830911e3520544e1065b16b36f00fe584
BLAKE2b-256 checksum
How to use checksums
99fcfb257d4a1a6562498501333cb72b79e0b091e9043b242df726369cb90542
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 26, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc8-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
d387ba2e34debea9fd8a9ee5c93db07920c398bea7b4741146163f89ce83d80c
BLAKE2b-256 checksum
How to use checksums
f612074b315b5acb51729e0272e8ead227fd635cfd5a9d0c6e937feda6c70565
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 26, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc8-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
fb50dca990c6ca56d895046f4478fd703bc6b89150de0dc4bee1f478b14e1674
BLAKE2b-256 checksum
How to use checksums
3b253cd715711a7a14f8b5cb7bce131812f9d6b4cfe4fa57d6fa0968d12f0a8c
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 26, 2026.

Transparency log

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

Download URL haybarn-2.0.0rc8-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
0ceb106aa64e75afa9bb634ba4dc6acde9e32c97485a1dba953ebfc1b931ee27
BLAKE2b-256 checksum
How to use checksums
e702db27b2450698cb95e484b248fda9412be595fa7fe04d42576f1198e4ecda
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 26, 2026.

Transparency log

Security for haybarn 2.0.0rc8

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.0rc8.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 26, 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