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.files()
['part-00000-cb6b150b-30b8-4662-ad28-ff32ddab96d2-c000.snappy.parquet',
 'part-00000-7c2deba3-1994-4fb8-bc07-d46c948aa415-c000.snappy.parquet',
 'part-00001-c373a5bd-85f0-4758-815e-7eb62007a15c-c000.snappy.parquet']

See the user guide for more examples.

Installation

pip install deltalake

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

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
pip install maturin

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

maturin build --release --out wheels

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

RUSTFLAGS="-C target-cpu=native" 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
pip install ziglang

Then you can build the wheel with:

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" 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-0.14.0.tar.gz (4.6 MB view details)

Uploaded Source

Built Distributions

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

deltalake-0.14.0-cp38-abi3-win_amd64.whl (21.0 MB view details)

Uploaded CPython 3.8+Windows x86-64

deltalake-0.14.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.7 MB view details)

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

deltalake-0.14.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (21.0 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

deltalake-0.14.0-cp38-abi3-macosx_11_0_arm64.whl (18.6 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

deltalake-0.14.0-cp38-abi3-macosx_10_12_x86_64.whl (19.9 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

deltalake-0.14.0-cp38-abi3-macosx_10_7_x86_64.whl (20.4 MB view details)

Uploaded CPython 3.8+macOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for deltalake-0.14.0.tar.gz
Algorithm Hash digest
SHA256 6aaeac1423c16fa574515f7a0c76b85c4d5fd8e409b0ffcd2c4763f96a6cdb44
MD5 0893a16196689dfd3b7e1aa4ea5935fa
BLAKE2b-256 5124e472bc0fb74027a6fe292e8b93d9d4a3d143e456b01046b313cb9837665e

See more details on using hashes here.

File details

Details for the file deltalake-0.14.0-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for deltalake-0.14.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a70017f8ddd3bb1dce005dfbae0d71cbddf7db9261d1daed0e48bb85b2a1101d
MD5 b8b47d14841e04c102b0352ed15ab3ce
BLAKE2b-256 1f5565ea9aa54840505ce8b34d8b2fe3c605e7fb13412ca76028b527307c6f69

See more details on using hashes here.

File details

Details for the file deltalake-0.14.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.14.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19c8b72f41ca6b32794b937830858e581fb1d8ba1c796843df6ec7ca6d27b8d2
MD5 1a1d9e326019e76a5e22081d39dcfa17
BLAKE2b-256 1bcc9c65afbb1111ed220e6dacd0fb175fbefe4bbe1012ce4f1b7266d6fdc46a

See more details on using hashes here.

File details

Details for the file deltalake-0.14.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for deltalake-0.14.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9645ab49127d04e74db64201ab1903fc098d38e69bb97f150b67cf545fb249fe
MD5 9249fc50f773c5abcdde3abda3555e4b
BLAKE2b-256 88cd2fa8c23849f352d03edae17d9feabaf129b7a84731ed9c0848fe41770244

See more details on using hashes here.

File details

Details for the file deltalake-0.14.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deltalake-0.14.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbb379dd4ad6e9a14de64ac4d91ef7ca4f7d1039323c9ac13f08716699ef73e1
MD5 877c630987b6def3c22346baf9525a42
BLAKE2b-256 33723ebd2d16bb9c4f6fdf18fed14141b21fafc283f441473380aea5be650fd3

See more details on using hashes here.

File details

Details for the file deltalake-0.14.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.14.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 48ce48c246e5f3dfe078b8d77a81f76e9b5da61c0e317756c27388e8e42b539e
MD5 18368ec7e0287cc439e09a82614f1e94
BLAKE2b-256 73ac1d895f4d8583ae0920c4c3f406d82f51889271fd25a21810c824c4291bd9

See more details on using hashes here.

File details

Details for the file deltalake-0.14.0-cp38-abi3-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.14.0-cp38-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 6123362ea7210d50c32fea79b3ad06a1240cac3df34c6a95a28ed073152588d4
MD5 436155a0e2698dc568830292626cac38
BLAKE2b-256 add467f8e2cd0b637e86549c2e2acfa4a9e4d913ba12865919ff1af733ae64ff

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page