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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deltalake-1.6.4.tar.gz (5.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

deltalake-1.6.4-cp310-abi3-win_amd64.whl (55.6 MB view details)

Uploaded CPython 3.10+Windows x86-64

deltalake-1.6.4-cp310-abi3-musllinux_1_2_x86_64.whl (52.1 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

deltalake-1.6.4-cp310-abi3-musllinux_1_2_aarch64.whl (51.0 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

deltalake-1.6.4-cp310-abi3-manylinux_2_28_aarch64.whl (51.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

deltalake-1.6.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (52.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

deltalake-1.6.4-cp310-abi3-macosx_11_0_arm64.whl (47.2 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

deltalake-1.6.4-cp310-abi3-macosx_10_12_x86_64.whl (50.9 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file deltalake-1.6.4.tar.gz.

File metadata

  • Download URL: deltalake-1.6.4.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.15.0

File hashes

Hashes for deltalake-1.6.4.tar.gz
Algorithm Hash digest
SHA256 ada75306e6bafdefd0f7fae97fada0f3dc463f9f6918b8b8299489b4b53c3e30
MD5 78d98f4f5c0b36ce1d53b27fcb0a77cc
BLAKE2b-256 b06829c9e7c9fcf8b5f03ec300566e974fca7065fd84709f34ef1b85ec74e385

See more details on using hashes here.

File details

Details for the file deltalake-1.6.4-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for deltalake-1.6.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8b125924995708578ff1610265e943d64b4230c69843deb58794e463056ea0f3
MD5 3b1f89b7fbf01607ca0d8135eb0cb756
BLAKE2b-256 c1b662dad002f1616bc32bcf5c987076927f816c1dc75250854d8a78a893a9e2

See more details on using hashes here.

File details

Details for the file deltalake-1.6.4-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-1.6.4-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fc8587b769251dfafc2ca3786c1a631b45002dd1babb2fb2a9037e730d934c4a
MD5 631ce8a99a5b5b73274c2526cbeaf190
BLAKE2b-256 1e86bf588fe247fa8d78b0df89922217f9c9253866420711b938846e8e3f34ae

See more details on using hashes here.

File details

Details for the file deltalake-1.6.4-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for deltalake-1.6.4-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f80861f0004ca2ffd8c78edb94f97ab27683b760cb876f4254c4d1dc6dc58572
MD5 f9e7f26a39592c90eaeb2daf4ca77b12
BLAKE2b-256 eb3e23a5978eb11f2aa5c6e8fa86edf61f9e99ef15b39340917d8f0be18a82bd

See more details on using hashes here.

File details

Details for the file deltalake-1.6.4-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for deltalake-1.6.4-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 37765e4dffa7682c345a8398b7b18f768f13ab8861ca2a6e4631229cf840aabf
MD5 68f93034f69c1b37287a0f680812e881
BLAKE2b-256 75b4501929e2ff56d9d3608db641104ceafe00c141b594d169c6cd9d5b434c04

See more details on using hashes here.

File details

Details for the file deltalake-1.6.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-1.6.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f26513d4ca8d95e1f7298197c7d870fdd18d600689f30859e7678f2632102194
MD5 c323ede1256d19d6d8e6e0989bdeca7e
BLAKE2b-256 d313c1e344e5cbb7bb20500e5f75da7f10a69c866daa47830e195eb5fbcbb87b

See more details on using hashes here.

File details

Details for the file deltalake-1.6.4-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deltalake-1.6.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbe9feba434d9c52f2f19a52d1c79f6e5c0803bca90e511b7afdf58012cadfb7
MD5 5be21474c7b06f243dc5183bd2aaedab
BLAKE2b-256 ad503843a061941665731ac409a1aae49ca854e4e70e8519ee44ef5c580a9fa5

See more details on using hashes here.

File details

Details for the file deltalake-1.6.4-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-1.6.4-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d5cfc32f7fe2676f732e1e58d2cec8d783bdce9ad835fad0e4c673bb3b1ea9f7
MD5 d7d43feffdfbb28b167c7f798c7ed4ec
BLAKE2b-256 89426d54055db0d80194729c57689d01a53eff104a670bb2af72a1b02ba91484

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.6.4 This release

8 files

1.6.3

8 files

1.6.2

7 files

1.6.1

6 files

1.6.0

7 files

1.5.1

7 files

1.5.0

7 files

1.4.2

7 files

1.4.1

7 files

1.4.0

7 files

1.3.3

7 files

1.3.2

7 files

1.3.1

7 files

1.3.0

6 files

1.2.1

7 files

1.2.0

7 files

1.1.4

8 files

1.1.3

8 files

1.1.2

7 files

1.1.1

3 files

1.1.0

7 files

1.0.2

7 files

1.0.1

7 files

1.0.0

7 files

0.25.5

7 files

0.25.4

7 files

0.25.2

7 files

0.25.1

6 files

0.25.0

3 files

0.24.0

6 files

0.23.2

6 files

0.23.1

6 files

0.23.0

6 files

0.22.3

6 files

0.21.0

6 files

0.20.2

6 files

0.20.1

6 files

0.20.0

6 files

0.19.2

6 files

0.19.1

6 files

0.19.0

6 files

0.18.2

6 files

0.18.1

6 files

0.18.0

6 files

0.17.4

6 files

0.17.3

6 files

0.17.2

6 files

0.17.1

6 files

0.17.0

6 files

0.16.4

6 files

0.16.3

6 files

0.16.2

6 files

0.16.1

6 files

0.16.0

6 files

0.15.3

6 files

0.15.2

6 files

0.15.1

6 files

0.15.0

6 files

0.14.0

7 files

0.13.0

7 files

0.12.0

7 files

0.11.0

7 files

0.10.2

7 files

0.10.1

6 files

0.10.0

7 files

0.9.0

7 files

0.8.1

7 files

0.8.0

7 files

0.7.0

7 files

0.6.4

6 files

0.6.3

6 files

0.6.2

6 files

0.6.1

5 files

0.6.0

6 files

0.5.8

6 files

0.5.7

5 files

0.5.6

5 files

0.5.5

4 files

0.5.4

4 files

0.5.3

4 files

0.5.2

4 files

0.5.1

4 files

0.5.0

4 files

0.4.8

3 files

0.4.7

3 files

0.4.6

3 files

0.4.5

3 files

0.4.4

3 files

0.4.3

0.4.2

0.4.1

3 files

0.4.0

3 files

0.3.0

3 files

0.2.1

3 files

0.2.0

3 files

0.1.4

12 files

0.1.3

12 files

0.1.2

8 files

0.1.1

12 files

0.1.0

13 files

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