Skip to main content

ducklake-sdk — Native SDKs for DuckLake

Read and write DuckLake tables from Rust and Python - no DuckDB required.

CI Build GitHub Release


DuckLake is an integrated data lake and catalog format that stores metadata in a SQL catalog database and writes data as Parquet files. This repository provides standalone Rust and Python SDKs that talk to DuckLakes directly, with no dependency on DuckDB or its DuckLake extension.

All language SDKs are built on the same Rust core, which bundles the implementation of the DuckLake specification.

Python (ducklake-sdk)

pypi-version conda-forge python-version readthedocs codecov

Rust (ducklake)

crates.io docs.rs codecov

Getting Started

Python

pip install ducklake-sdk            # core
pip install "ducklake-sdk[polars]"  # Polars integration
pip install "ducklake-sdk[arrow]"   # Arrow + DuckDB integration

Rust

cargo add ducklake

Quick Example

import ducklake as dl
import polars as pl

# Create a new DuckLake backed by SQLite metadata and local Parquet storage
ducklake = dl.create("sqlite:///metadata.sqlite", data_path="data_files/")

# Define a table.
table = ducklake.create_table(
    "events",
    schema={"id": dl.Int64(), "message": dl.Varchar()},
)

# Write data using Polars
lf = pl.LazyFrame({"id": [1, 2, 3], "message": ["hello", "ducklake", "sdk"]})
table.sink_polars(lf)

# Read it back as a Polars LazyFrame
df = table.scan_polars().collect()

For the full API, see the Python documentation or the Rust API docs.

Features

The Rust core — and therefore every SDK built on top of it — supports:

The Python SDK additionally provides:

Compatibility Matrix

Catalog Databases

Database Status
SQLite ✅
Postgres ✅
MySQL 🟧 (no data inlining*)
DuckDB (via Quack) ❌

*Data inlining for MySQL is not defined in the DuckLake specification.

Storage Backends

Backend Status
Local / NFS ✅
AWS S3-compatible ✅
Google Cloud Storage ✅
Azure Blob Storage ✅

DuckLake Specification Versions

Version Status
1.0 ✅ (actively supported)
0.4 ⬆️ (requires migration)
0.3 ⬆️ (requires migration)
0.2 ⬆️ (requires migration)
0.1 ⬆️ (requires migration)

See the DuckLake release calendar for upcoming versions.

Project Status

Not yet implemented from the specification

  • Mapping columns by name (Parquet files must currently carry field IDs)
  • Macros and encrypted files

Known limitations

Rust SDK (may impact efficiency):

  • Tables partitioned with a non-identity transform do not benefit from file pruning yet.
  • Filters are not pushed down into the metadata query. Statistics are still loaded eagerly and used by readers to prune files, but the metadata query may transmit more data than necessary.

Python SDK:

Contributing

Contributions, bug reports, and feature requests are very welcome. See the contribution guidelines to get started.

License

Licensed under the MIT License.

Metadata

Release files for ducklake-sdk 0.0.22

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

Source distribution (sdist)

Source distribution for ducklake-sdk 0.0.22
File Size Uploaded Provenance Actions
ducklake_sdk-0.0.22.tar.gz 254.1 kB With provenance Details for ducklake_sdk-0.0.22.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ducklake-sdk 0.0.22
File Actions
ducklake_sdk-0.0.22-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for ducklake_sdk-0.0.22-cp311-abi3-win_amd64.whl
ducklake_sdk-0.0.22-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for ducklake_sdk-0.0.22-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
ducklake_sdk-0.0.22-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for ducklake_sdk-0.0.22-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
ducklake_sdk-0.0.22-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for ducklake_sdk-0.0.22-cp311-abi3-macosx_11_0_arm64.whl
ducklake_sdk-0.0.22-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for ducklake_sdk-0.0.22-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 65.2 MB

Release files / ducklake_sdk-0.0.22.tar.gz

Download URL ducklake_sdk-0.0.22.tar.gz
Size 254.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5904929bb51cc646f0c194e0363a3354e05319d69e7512905f9a4cfa2f2e7925
BLAKE2b-256 checksum
How to use checksums
ddc08fe0e42eb90d9753fa03b982d04e5d7141afc9799f19aa49758d2964aa48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 28, 2026.

Transparency log

Release files / ducklake_sdk-0.0.22-cp311-abi3-win_amd64.whl

Download URL ducklake_sdk-0.0.22-cp311-abi3-win_amd64.whl
Size 14.0 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f9700044ae6b28880376ddd61b8132bfaecb4b54d259a756c023fee6e479e27f
BLAKE2b-256 checksum
How to use checksums
9ee3ae248b3c80ee56a9988bebdf5b2a9bb13cb958c8a227bfb9fa74a3260533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 28, 2026.

Transparency log

Release files / ducklake_sdk-0.0.22-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ducklake_sdk-0.0.22-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 13.5 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ec4e86801527a8426eafae5907fbd061a3e993caf04c2157224de89944a975d1
BLAKE2b-256 checksum
How to use checksums
f94574331d037a84062f4f36effd25b37a661046f7dcb77f7e8b7470791f504c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 28, 2026.

Transparency log

Release files / ducklake_sdk-0.0.22-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL ducklake_sdk-0.0.22-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 12.7 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
a6048f054569e0612663ba6b729d335e5283b24d8adc0ea9f43c0ef5f5d76ad6
BLAKE2b-256 checksum
How to use checksums
28ee667186b42a570450e80868ba1f8b054b01fadc7539f577f13ae900afc705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 28, 2026.

Transparency log

Release files / ducklake_sdk-0.0.22-cp311-abi3-macosx_11_0_arm64.whl

Download URL ducklake_sdk-0.0.22-cp311-abi3-macosx_11_0_arm64.whl
Size 11.6 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9fdd44f7b4f510b514bc9779f842daa4dfa793621e4179e90ac45b70ad0e9014
BLAKE2b-256 checksum
How to use checksums
3ac64db7f1eb688bf5c5c00dffa9491f3c159451fb86e8c4e3dff494a7d6ae92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 28, 2026.

Transparency log

Release files / ducklake_sdk-0.0.22-cp311-abi3-macosx_10_12_x86_64.whl

Download URL ducklake_sdk-0.0.22-cp311-abi3-macosx_10_12_x86_64.whl
Size 13.2 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
11f03e17d835effd07d2682030fd3b1e3ca2bb484519c8a39648ae0efbbac88b
BLAKE2b-256 checksum
How to use checksums
88d0524c3a0a6b374f8d38842624cc2e9fa3857c4ecd97fdfc7a05452ccd8724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 28, 2026.

Transparency log

Security for ducklake-sdk 0.0.22

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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for ducklake_sdk-0.0.22.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 28, 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