Skip to main content

Deltalake-python

PyPI

Native Delta Lake binding for Python based on delta-rs.

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.

Usage

Resolve partitions for current version of the DeltaTable:

>>> 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']

Convert DeltaTable into PyArrow Table and Pandas Dataframe:

>>> from deltalake import DeltaTable
>>> dt = DeltaTable("../rust/tests/data/simple_table")
>>> df = dt.to_pyarrow_table().to_pandas()
>>> df
   id
0   5
1   7
2   9
>>> df[df['id'] > 5]
   id
1   7
2   9

Time travel:

>>> from deltalake import DeltaTable
>>> dt = DeltaTable("../rust/tests/data/simple_table")
>>> dt.load_version(2)
>>> dt.to_pyarrow_table().to_pandas()
   id
0   5
1   7
2   9
3   5
4   6
5   7
6   8
7   9

Develop

maturin is used to build the python package.

To install development version of the package into your current Python environment:

$ maturin develop

Build manylinux wheels

docker run -e PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig -it -v `pwd`:/io apache/arrow-dev:amd64-centos-6.10-python-manylinux2010 bash
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
rustup default stable
cargo install --git https://github.com/PyO3/maturin.git --rev 98636cea89c328b3eba4ebb548124f75c8018200 maturin
cd /io/python
export PATH=/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:$PATH
maturin publish -b pyo3 --target x86_64-unknown-linux-gnu --no-sdist

Release files for deltalake 0.1.4

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

Built distributions (wheels)

Table of built distributions (wheels) for deltalake 0.1.4
File
deltalake-0.1.4-cp39-none-win_amd64.whl CPython 3.9 none Windows x86-64 Details
deltalake-0.1.4-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details
deltalake-0.1.4-cp39-cp39-macosx_10_7_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.7+ x86-64 Details
deltalake-0.1.4-cp38-none-win_amd64.whl CPython 3.8 none Windows x86-64 Details
deltalake-0.1.4-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details
deltalake-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.7+ x86-64 Details
deltalake-0.1.4-cp37-none-win_amd64.whl CPython 3.7 none Windows x86-64 Details
deltalake-0.1.4-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details
deltalake-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 Details
deltalake-0.1.4-cp36-none-win_amd64.whl CPython 3.6 none Windows x86-64 Details
deltalake-0.1.4-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details
deltalake-0.1.4-cp36-cp36m-macosx_10_7_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 Details

Total release size: 63.7 MB

Release files / deltalake-0.1.4-cp39-none-win_amd64.whl

Download URL deltalake-0.1.4-cp39-none-win_amd64.whl
Size 4.7 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
0b8ab6375918535c75935317605cdf9a991e9ac3f1613372108a6224f2f73efc
BLAKE2b-256 checksum
How to use checksums
0aecb04352d37373f3528ca347b2bb1d0d1049dfb78ccf17d3053c86778c490d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp39-cp39-manylinux2010_x86_64.whl

Download URL deltalake-0.1.4-cp39-cp39-manylinux2010_x86_64.whl
Size 6.4 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
273153c8069ceabc1cae38311dc56927a1f56f3d986adda354c4225d0d10ada3
BLAKE2b-256 checksum
How to use checksums
639599389aa1d59c885215c35d4329d68760db89e7abfa948937fc47a39a2580
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp39-cp39-macosx_10_7_x86_64.whl

Download URL deltalake-0.1.4-cp39-cp39-macosx_10_7_x86_64.whl
Size 4.8 MB
Tags CPython 3.9 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
5c5c3949b6185979eb44ae19ee66b259498bb2dbd5271c1db8bff4ef9d7828de
BLAKE2b-256 checksum
How to use checksums
543940c391fc4865b499a194dc7079f2ef3365cfe3d66a04d50e71030fd83cd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp38-none-win_amd64.whl

Download URL deltalake-0.1.4-cp38-none-win_amd64.whl
Size 4.7 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
6c505faf63e21d168243d4cb398209168a3b369d463805eb6d876729d670cb54
BLAKE2b-256 checksum
How to use checksums
da53f872de0beaad18f04457178428c7b66f1bd9d9fcb19664b211d6a23fa383
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp38-cp38-manylinux2010_x86_64.whl

Download URL deltalake-0.1.4-cp38-cp38-manylinux2010_x86_64.whl
Size 6.4 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
7c8ae30c7643bb77b5ecd95bdfa0d6542e5b7cd7896d1bba684653eb9297b946
BLAKE2b-256 checksum
How to use checksums
8692f47f36db21c7b656d726eb715c2fe9d4dcc2fe95c26fe0465b0d77afebb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl

Download URL deltalake-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl
Size 4.8 MB
Tags CPython 3.8 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
a789569d48bf8db520d8616b1416580b9ccd43dbe8c354b1faab9dca68e7a48b
BLAKE2b-256 checksum
How to use checksums
a9d1c2696915db06d026d09cfd0d2426ee19c99a77ad822e556fb174a9a4b6e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp37-none-win_amd64.whl

Download URL deltalake-0.1.4-cp37-none-win_amd64.whl
Size 4.7 MB
Tags CPython 3.7 Windows x86-64
SHA-256 checksum
How to use checksums
edb7f89ba1720b9495ba31651a3aa56158c190c0855670fa897d08625343cb84
BLAKE2b-256 checksum
How to use checksums
c6a52e382b2bd819028a975f50d0a2cf29dd9af09bc933620a34adbf0d3354a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp37-cp37m-manylinux2010_x86_64.whl

Download URL deltalake-0.1.4-cp37-cp37m-manylinux2010_x86_64.whl
Size 6.4 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
dfcbad32824c283d9076b376710d50e5875c133f03c045f7a750eaac478d131d
BLAKE2b-256 checksum
How to use checksums
dd8e7a2159590e8749edb13e687442e3dc6b6e489204b8f1e6d618671587575c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl

Download URL deltalake-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl
Size 4.8 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
f1bf6b1c9df851b97044283d05ba59e68c059f066fad3cf50ef722f4af56533a
BLAKE2b-256 checksum
How to use checksums
cc56c9c7033acaed5f95d862d1f3af8cd264b1e69abb8809d6a092a7feb4ce91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp36-none-win_amd64.whl

Download URL deltalake-0.1.4-cp36-none-win_amd64.whl
Size 4.7 MB
Tags CPython 3.6 Windows x86-64
SHA-256 checksum
How to use checksums
739c7fbd206608e70025a0d8f5a4a1b95e30a68c1de52274e9f25686eacc783f
BLAKE2b-256 checksum
How to use checksums
56353f93f88a5ee59627dd410c2ef44a86aeb2717b770e58565dbf03e79974e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp36-cp36m-manylinux2010_x86_64.whl

Download URL deltalake-0.1.4-cp36-cp36m-manylinux2010_x86_64.whl
Size 6.4 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
5b0aa57e5bc80ee3c5cdde5d18ebcadfd8b19c9dd5571bd704267fc589da04b1
BLAKE2b-256 checksum
How to use checksums
6b9b3ae11f20c2b5da3b6a391c112ce1ebb35afd4677bbf2af5fc071e286c139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release files / deltalake-0.1.4-cp36-cp36m-macosx_10_7_x86_64.whl

Download URL deltalake-0.1.4-cp36-cp36m-macosx_10_7_x86_64.whl
Size 4.8 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
d41247a2e8227218d677899955662f83c617265865dff1a42a5f40ca39f69af2
BLAKE2b-256 checksum
How to use checksums
406560ad263a8a928e4b15e773de44c665b97a2d3f230abf144e98c802e7527c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.9.0

Release history Release notifications | RSS feed

1.6.5

8 release files

1.6.4

8 release files

1.6.3

8 release files

1.6.2

7 release files

1.6.1

6 release files

1.6.0

7 release files

1.5.1

7 release files

1.5.0

7 release files

1.4.2

7 release files

1.4.1

7 release files

1.4.0

7 release files

1.3.3

7 release files

1.3.2

7 release files

1.3.1

7 release files

1.3.0

6 release files

1.2.1

7 release files

1.2.0

7 release files

1.1.4

8 release files

1.1.3

8 release files

1.1.2

7 release files

1.1.1

3 release files

1.1.0

7 release files

1.0.2

7 release files

1.0.1

7 release files

1.0.0

7 release files

0.25.2

7 release files

0.25.1

6 release files

0.25.0

3 release files

0.24.0

6 release files

0.21.0

6 release files

0.20.1

6 release files

0.20.0

6 release files

0.19.1

6 release files

0.19.0

6 release files

0.18.1

6 release files

0.17.4

6 release files

0.17.2

6 release files

0.17.1

6 release files

0.17.0

6 release files

0.16.3

6 release files

0.16.2

6 release files

0.16.1

6 release files

0.12.0

7 release files

0.11.0

7 release files

0.10.2

7 release files

0.10.1

6 release files

0.9.0

7 release files

0.8.1

7 release files

0.8.0

7 release files

0.7.0

7 release files

0.6.4

6 release files

0.6.3

6 release files

0.6.2

6 release files

0.6.1

5 release files

0.6.0

6 release files

0.5.8

6 release files

0.5.7

5 release files

0.5.6

5 release files

0.5.5

4 release files

0.5.4

4 release files

0.5.3

4 release files

0.5.2

4 release files

0.5.1

4 release files

0.5.0

4 release files

0.4.8

3 release files

0.4.7

3 release files

0.4.6

3 release files

0.4.5

3 release files

0.4.4

3 release files

0.4.3

0.4.2

0.4.1

3 release files

0.4.0

3 release files

0.3.0

3 release files

0.2.1

3 release files

0.2.0

3 release files

This release

0.1.4 This release

12 release files

0.1.2

8 release files

0.1.1

12 release 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