Skip to main content

Python binding for delta-rs

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.1.3

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

deltalake-0.1.3-cp39-none-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.9Windows x86-64

deltalake-0.1.3-cp39-cp39-manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

deltalake-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

deltalake-0.1.3-cp38-none-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.8Windows x86-64

deltalake-0.1.3-cp38-cp38-manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

deltalake-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

deltalake-0.1.3-cp37-none-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.7Windows x86-64

deltalake-0.1.3-cp37-cp37m-manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

deltalake-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

deltalake-0.1.3-cp36-none-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.6Windows x86-64

deltalake-0.1.3-cp36-cp36m-manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

deltalake-0.1.3-cp36-cp36m-macosx_10_7_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

File details

Details for the file deltalake-0.1.3-cp39-none-win_amd64.whl.

File metadata

  • Download URL: deltalake-0.1.3-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.9.0-beta.1

File hashes

Hashes for deltalake-0.1.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 f3c92981a86b935fe56ef8cb56b35c57a8dbd64886308c02f8a1bb1086b172e5
MD5 df612f52496d0e65b74716c0e54ab1f5
BLAKE2b-256 5ea17a833182ec1f2e837d833631d105e02ac81b1cea21453642e7abf8875a79

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.1.3-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9e2f1446819b7144c5290029b4afd6610c1c95a014b2e0f4458aaa96a41ebe2e
MD5 5353ea4cdf1de5e5b82e1035718719ed
BLAKE2b-256 97e3217310429f5c1e4e00d3dba3ddac338c9136654c21e2c2d35b04523c41bb

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e159e25e15848a936bc785dc32c0e3f48d1f420642cc83857eb7b4f92f6ce910
MD5 5b927f632d63eea7b21c69c3a8c33bc0
BLAKE2b-256 161a4c2541fcd6daa69107a4ff4ee0bfe4e9c213322fa0c37976460707aa10ee

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp38-none-win_amd64.whl.

File metadata

  • Download URL: deltalake-0.1.3-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.9.0-beta.1

File hashes

Hashes for deltalake-0.1.3-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 730376ef5bc49d327f883cf3f4335013f760bf04c0364f15a6eceaa0d0dec6ae
MD5 9d07b9bd5a0ba207852eb30a9c6cace3
BLAKE2b-256 c45ad392d55059f77f20d3491806c63ec153bea0e0c41e12418908da6f11d089

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.1.3-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 601fcb902bbd85e08a41e388f5ebf1f69e4d9497168d66c48c6505bdab040eca
MD5 6315897658f824f5bcee74d671822cba
BLAKE2b-256 079869f4460f63fd8a06ac346f3579dd2cb78968a71d8c3ee0986af40633da9d

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 9d45914036500efa65c948472498ff4877c34e0ce220c8624e71ac44f68507e9
MD5 a84a4cf5954cc81446e14bbeeb4b26e2
BLAKE2b-256 235083c3a89475054b187a4068399eec093e96010e708c3412aa16a72dec0c2c

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp37-none-win_amd64.whl.

File metadata

  • Download URL: deltalake-0.1.3-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.9.0-beta.1

File hashes

Hashes for deltalake-0.1.3-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 5b4fe2cbb72c6ca084be190902a2afeea517299f6c5d5c5067c1ca42bafa6b0f
MD5 8e9d6b80d57cbd1286041010c16ffe10
BLAKE2b-256 c3dc88e83f6e27c8a750a2d51718c58c45159cc96cc0286aed66b73c8d336975

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.1.3-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d7e33b666cf85f021bf24b9f51652c345ebe635de9c64932ec34c155c952415e
MD5 5b3c0ce1e7c26a0f79bd9bf92eb4e3ef
BLAKE2b-256 79227809135c3a937d17a7b67636fac7bf046bdcfd229cac41ad35f3b89aee71

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 1d597ba393ae783e8b666d64f6a7d85d9e2d38d6b1066a4b3aa35bdd238d8b21
MD5 9b8fb270656414ed7a679f821c2accf2
BLAKE2b-256 03725115712b0bc08826cbce6f600625912d279d1095108d540e52187bf8d54c

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp36-none-win_amd64.whl.

File metadata

  • Download URL: deltalake-0.1.3-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: CPython 3.6, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.9.0-beta.1

File hashes

Hashes for deltalake-0.1.3-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 e8a4e91dd502df9ce170ab8dfd90173eddc6476065dc4a3c21aa156bab7bd828
MD5 596508860998985f2afce6d9e058bae1
BLAKE2b-256 2d0cdea0958c62771d7b77de3827b973e6a991dfa4ddebb97336758a3f7eaf07

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.1.3-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 356dc28eb8450182d76aa46e70a6697a193ddf306341966c3d96e0f09c3d0865
MD5 aafebcacec8c1139e2340e9f8eddaa3b
BLAKE2b-256 c0daf2f0658a77c948a2a015682f482f48637fd9672b7544966ae8733cfec77f

See more details on using hashes here.

File details

Details for the file deltalake-0.1.3-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for deltalake-0.1.3-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 594c0bf0aac70cabb8d0bb49f8aa1f222d44dcf743d353b73c958373386804c4
MD5 06a778eecd35443428c9adb5c0c381a5
BLAKE2b-256 3f3fe849a3872fb6cad301009585201dfb196edac099d07c6bbab0f0dfe892a9

See more details on using hashes here.

Supported by

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