Skip to main content

Deltalake-python

PyPI userdoc apidoc

Native Delta Lake Python binding based on delta-rs with Pandas integration.

Example

from deltalake import DeltaTable
dt = DeltaTable("../rust/tests/data/delta-0.2.0")
dt.version()
3
dt.file_uris()
['s3://bucket/table/part-00000-cb6b150b-30b8-4662-ad28-ff32ddab96d2-c000.snappy.parquet',
 's3://bucket/table/part-00000-7c2deba3-1994-4fb8-bc07-d46c948aa415-c000.snappy.parquet',
 's3://bucket/table/part-00001-c373a5bd-85f0-4758-815e-7eb62007a15c-c000.snappy.parquet']

See the user guide for more examples.

Installation

# with pip
pip install deltalake
# with uv
uv add deltalake
# with poetry
poetry add deltalake

NOTE: official binary wheels are linked against openssl statically for remote object store communication. Please file a Github issue to request a critical openssl upgrade.

Tracing and Observability

Delta-rs supports OpenTelemetry tracing for performance analysis and debugging.

Basic Example

import os
import deltalake
from deltalake import write_deltalake, DeltaTable

# Enable logging to see trace output in stdout
os.environ["RUST_LOG"] = "deltalake=debug"

# Initialize tracing (uses default HTTP endpoint or OTEL_EXPORTER_OTLP_ENDPOINT env var)
# For authentication, set OTEL_EXPORTER_OTLP_HEADERS="x-honeycomb-team=your-api-key"
# The HTTP exporter automatically reads OTEL_EXPORTER_OTLP_HEADERS for API keys
deltalake.init_tracing()

# All Delta operations are now traced
write_deltalake("my_table", data)
dt = DeltaTable("my_table")
df = dt.to_pandas()

When you run this code, you'll see trace information in stdout showing operation timings and execution flow.

Build custom wheels

Sometimes you may wish to build custom wheels. Maybe you want to try out some unreleased features. Or maybe you want to tweak the optimization of the Rust code.

To compile the package, you will need the Rust compiler and maturin:

curl https://sh.rustup.rs -sSf | sh -s

Then you can build wheels for your own platform like so:

uvx maturin build --release --out wheels

Note:

  • uvx invokes a tool without installing it.
  • if you plan to often use maturin, you can install the "tool" with uv tool install maturin.

For a build that is optimized for the system you are on (but sacrificing portability):

RUSTFLAGS="-C target-cpu=native" uvx maturin build --release --out wheels

Cross compilation

The above command only works for your current platform. To create wheels for other platforms, you'll need to cross compile. Cross compilation requires installing two additional components: to cross compile Rust code, you will need to install the target with rustup; to cross compile the Python bindings, you will need to install ziglang.

The following example is for manylinux2014. Other targets will require different Rust target and Python compatibility tags.

rustup target add x86_64-unknown-linux-gnu

Then you can build wheels for the target platform like so:

uvx --from 'maturin[zig]' maturin build --release --zig \
    --target x86_64-unknown-linux-gnu \
    --compatibility manylinux2014 \
    --out wheels

If you expect to only run on more modern system, you can set a newer target-cpu flag to Rust and use a newer compatibility tag for Linux. For example, here we set compatibility with CPUs newer than Haswell (2013) and Linux OS with glibc version of at least 2.24:

RUSTFLAGS="-C target-cpu=haswell" uvx --from 'maturin[zig]' maturin build --release --zig \
    --target x86_64-unknown-linux-gnu \
    --compatibility manylinux_2_24 \
    --out wheels

See note about RUSTFLAGS from the arrow-rs readme.

Metadata

Release files for deltalake 1.7.0

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

Source distribution (sdist)

Source distribution for deltalake 1.7.0
File Size Uploaded Provenance Actions
deltalake-1.7.0.tar.gz 5.9 MB Without provenance Details for deltalake-1.7.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for deltalake 1.7.0
File Actions
deltalake-1.7.0-cp311-abi3-win_arm64.whl CPython 3.11 abi3 Windows ARM64 Details for deltalake-1.7.0-cp311-abi3-win_arm64.whl
deltalake-1.7.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for deltalake-1.7.0-cp311-abi3-win_amd64.whl
deltalake-1.7.0-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for deltalake-1.7.0-cp311-abi3-musllinux_1_2_x86_64.whl
deltalake-1.7.0-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for deltalake-1.7.0-cp311-abi3-musllinux_1_2_aarch64.whl
deltalake-1.7.0-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for deltalake-1.7.0-cp311-abi3-manylinux_2_28_aarch64.whl
deltalake-1.7.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for deltalake-1.7.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
deltalake-1.7.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for deltalake-1.7.0-cp311-abi3-macosx_11_0_arm64.whl
deltalake-1.7.0-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for deltalake-1.7.0-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 436.3 MB

Release files / deltalake-1.7.0.tar.gz

Download URL deltalake-1.7.0.tar.gz
Size 5.9 MB
Tags Source
SHA-256 checksum
How to use checksums
d599ed3b835ccd79a56a30eac7bdef6a2308724ed7ef3457ccafe328512fb29a
BLAKE2b-256 checksum
How to use checksums
a6b97570895c46280c5b1f37398189a0668626111c37277816441c03e0efb611
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / deltalake-1.7.0-cp311-abi3-win_arm64.whl

Download URL deltalake-1.7.0-cp311-abi3-win_arm64.whl
Size 54.4 MB
Tags CPython 3.11 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
c4f0a83c7be4067b001526ee536f4736a5fb780c89a7eaf659207a4934825b24
BLAKE2b-256 checksum
How to use checksums
1f4bedebbe3b56312cfe360b3ef3e5d1d98107a9cd61f9156ae641b70500162b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / deltalake-1.7.0-cp311-abi3-win_amd64.whl

Download URL deltalake-1.7.0-cp311-abi3-win_amd64.whl
Size 57.8 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cdef29e7e9936745f0ed14322864223f797b1e3f9184c4188239d93250c5f671
BLAKE2b-256 checksum
How to use checksums
113a2111fa6481642c7ad4b354746f0cb39dd6f5d6de8153e91934cf3cf77857
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / deltalake-1.7.0-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL deltalake-1.7.0-cp311-abi3-musllinux_1_2_x86_64.whl
Size 54.4 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
40837f085f51fe328d64ea547c5691883d5d97bc5088bcbfb5b50587f3b053cb
BLAKE2b-256 checksum
How to use checksums
1e4ea4a2515fa3126d9e682a9e55f2b35969a42d0e31067aa92528e342fea676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / deltalake-1.7.0-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL deltalake-1.7.0-cp311-abi3-musllinux_1_2_aarch64.whl
Size 53.7 MB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
459ddd4e9e333eaa8dce9e277ad6d19d0686343e6956d4d28c0d95eb9b13cba7
BLAKE2b-256 checksum
How to use checksums
1655a5631c7e8e72353d5a6b2a650ace8afbefb4545683015c0c7c887d3ebdf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / deltalake-1.7.0-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL deltalake-1.7.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 53.7 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
b84968a144e1cdf779a6584fec2e2936ccb21b531dc65db60ad25be7271bcfcf
BLAKE2b-256 checksum
How to use checksums
82308e2fd84645c2ebdd3a99fac094a56aeb076a5d6422df4fbdb73abc96a46e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / deltalake-1.7.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL deltalake-1.7.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 54.4 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ff5ec14c420286ec46e3c55081fb3f2acb0fb37e77edf1c1cc00abe4795223e7
BLAKE2b-256 checksum
How to use checksums
7da381ad65adfd9a33cdd486fc986366907b6aa2688fdc3bfd493e727be45247
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / deltalake-1.7.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL deltalake-1.7.0-cp311-abi3-macosx_11_0_arm64.whl
Size 48.8 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
369bfd2eb0e0d55ea744964cb3c14a61c68eb8bad5455c570794e00d49512247
BLAKE2b-256 checksum
How to use checksums
86dd469412004ce19a0d04545b86880f82d198179f8a50846cfd28efa126ed5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / deltalake-1.7.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL deltalake-1.7.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 53.2 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ec006fbb55edf45a681752e10d8d1879cfa5638fcd8882ebc7bda496689862f5
BLAKE2b-256 checksum
How to use checksums
a3808c7de9700b6fe9b05ff63a6aa9c961d888aebdef89dfd719fc1523ad5af8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Security for deltalake 1.7.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.7.0 This release

9 release files No provenance

0.4.3

0.4.2

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