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

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

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

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

Uploaded CPython 3.9Windows x86-64

deltalake-0.1.1-cp39-cp39-manylinux2010_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.9macOS 10.7+ x86-64

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

Uploaded CPython 3.8Windows x86-64

deltalake-0.1.1-cp38-cp38-manylinux2010_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8macOS 10.7+ x86-64

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

Uploaded CPython 3.7Windows x86-64

deltalake-0.1.1-cp37-cp37m-manylinux2010_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7mmacOS 10.7+ x86-64

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

Uploaded CPython 3.6Windows x86-64

deltalake-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

deltalake-0.1.1-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.1-cp39-none-win_amd64.whl.

File metadata

  • Download URL: deltalake-0.1.1-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.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 ee41477b9ef01865bf8d49eff6126a5138394fed38a69021e60788a46c573649
MD5 fb8a0ae20ac8b5a5f84a1e552474c27f
BLAKE2b-256 aa59c4bd9fa8be7372d564592886652deff7d6fb43cfaa011d64dbf02bf0fb01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deltalake-0.1.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1f690607d04a75110411de2a90c990448e90d08c40dc65e40457b87f791b4a7e
MD5 8acf2c238432884e2ed695cd4c3e9dae
BLAKE2b-256 e7034eb268e978cc20a659c98036c6b703133bf48a15b01ad840f9f2792c879c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deltalake-0.1.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 7cc847dba1be8c0e80655bf61af8dc4f3a063ef9db5303424543235bc782af86
MD5 c2420b0e60b96ce8d1afd43288aa56aa
BLAKE2b-256 cd2e3136a8ee5c429f6d5ef88dba23d382801438b30a08b98ec389a8828d91f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deltalake-0.1.1-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.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 e70db3b5f4c7622b500e8f6416f2bcb34dcde7de3940445a371e5a331ca35908
MD5 e369d860d0d5d7e64d8ae54026d5b763
BLAKE2b-256 ee5a7d6afdf09f282aed391a06d155ac2da0829c8056f3b38ef82cfbef73d6fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deltalake-0.1.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7f42c242cd3692d9bed12da97fe7a5d8306181eb95f2d60c8a1a5c4b02ec0069
MD5 f4f7c84cd2dba16d28c71329d92a599e
BLAKE2b-256 f8ed1ec3a4c92c505b4f917e2300d06d9f586f55fc74b4e463477aeb43a0d3c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deltalake-0.1.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 f90761fa3cb532d589d96b69a85ef47f8585350aa66303867eae59096cb03914
MD5 42da51fe7c816de558b530a55a9aed2e
BLAKE2b-256 af507504b3115c9f52a2be975f3f8652b9703e101bc52393e94914e303f2105b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deltalake-0.1.1-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.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 998fa6b9dfd4b9c476deade9a23b8ebe9645a4c2362640e5740a6ba60d297251
MD5 f18f29675380576d14b21a4f8bff098e
BLAKE2b-256 583bab1c234a31bc0cf3f38b8e5fbd2625d3144d958147bd58c9a37b11ef50c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deltalake-0.1.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 289cef56c3bde07f680788ecc3eaab25c2e5a89b305075340b32e79d51c2a1a1
MD5 1f215761a4aff97b2b8575254f977421
BLAKE2b-256 ef2bf2683e4d41200aaf5b4e8b9ddc56891c2d3ce84c5a5876297e94539a0e8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deltalake-0.1.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4f595b136d516c9bc0b8959052a5fe31d20f4309a528dcf5095e87a24e1da3b2
MD5 61952dc9d84b6069dbed0e7bdb939b9c
BLAKE2b-256 7b13ddf9c3695d97d690fda8b8ee61404c749cfb945134c45c7e30daa977c5ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deltalake-0.1.1-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.1-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 a392eadbe3f22e7e5d6d20b7d0062b8b7c9f6aee07c650a5fa693d7bf9d7635e
MD5 fd3d57f132f7749cdbf2368c7ef009ab
BLAKE2b-256 62bd9d63b4b467e7a55865c8f4566cf455b37b5112b58aca7479547ddac88a16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deltalake-0.1.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 118b5c6252d366956ffd8531e496aee5284c1d3348dd3676abd700524fc8f7cf
MD5 ddb14c0aba7f808fe74eafb30056ee15
BLAKE2b-256 94234b0fc2338084d2a4f25908eb53c0c4ae01c1c973d46159b26c8ef09ccf5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deltalake-0.1.1-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e6d66a55f7ba3fe38b6e81a6594bbebf5081d8f9c52cb61bd8ac2b87890632cd
MD5 9fd70e3d317bbccb8ee01356dc47dd8e
BLAKE2b-256 cc3398a985525b7114ff8ebc36500251ad23d7a4b64ecaf99fe0c61ba961bb21

See more details on using hashes here.

Supported by

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