deltalake


Namedeltalake JSON
Version 0.21.0 PyPI version JSON
download
home_pagehttps://github.com/delta-io/delta-rs
SummaryNative Delta Lake Python binding based on delta-rs with Pandas integration
upload_time2024-10-30 15:06:45
maintainerNone
docs_urlNone
authorQingping Hou <dave2008713@gmail.com>, Will Jones <willjones127@gmail.com>
requires_python>=3.8
licenseApache-2.0
keywords deltalake delta datalake pandas arrow
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Deltalake-python

[![PyPI](https://img.shields.io/pypi/v/deltalake.svg?style=flat-square)](https://pypi.org/project/deltalake/)
[![userdoc](https://img.shields.io/badge/docs-user-blue)](https://delta-io.github.io/delta-rs/)
[![apidoc](https://img.shields.io/badge/docs-api-blue)](https://delta-io.github.io/delta-rs/api/delta_table/)

Native [Delta Lake](https://delta.io/) Python binding based on
[delta-rs](https://github.com/delta-io/delta-rs) with
[Pandas](https://pandas.pydata.org/) integration.


## Example

```python
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](https://delta-io.github.io/delta-rs/usage/installation/) for more examples.

## Installation

```bash
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](https://github.com/PyO3/maturin):

```sh
curl https://sh.rustup.rs -sSf | sh -s
pip install maturin
```

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

```sh
maturin build --release --out wheels
```

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

```sh
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.

```sh
rustup target add x86_64-unknown-linux-gnu
pip install ziglang
```

Then you can build the wheel with:

```sh
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:

```sh
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](https://github.com/apache/arrow-rs/blob/master/arrow/README.md#performance-tips).


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/delta-io/delta-rs",
    "name": "deltalake",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "deltalake, delta, datalake, pandas, arrow",
    "author": "Qingping Hou <dave2008713@gmail.com>, Will Jones <willjones127@gmail.com>",
    "author_email": "Qingping Hou <dave2008713@gmail.com>, Will Jones <willjones127@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/64/23/349519b4ec9b81bd3236c20db4641cf2270279e13f4aef7436fc04f15070/deltalake-0.21.0.tar.gz",
    "platform": null,
    "description": "# Deltalake-python\n\n[![PyPI](https://img.shields.io/pypi/v/deltalake.svg?style=flat-square)](https://pypi.org/project/deltalake/)\n[![userdoc](https://img.shields.io/badge/docs-user-blue)](https://delta-io.github.io/delta-rs/)\n[![apidoc](https://img.shields.io/badge/docs-api-blue)](https://delta-io.github.io/delta-rs/api/delta_table/)\n\nNative [Delta Lake](https://delta.io/) Python binding based on\n[delta-rs](https://github.com/delta-io/delta-rs) with\n[Pandas](https://pandas.pydata.org/) integration.\n\n\n## Example\n\n```python\nfrom deltalake import DeltaTable\ndt = DeltaTable(\"../rust/tests/data/delta-0.2.0\")\ndt.version()\n3\ndt.files()\n['part-00000-cb6b150b-30b8-4662-ad28-ff32ddab96d2-c000.snappy.parquet',\n 'part-00000-7c2deba3-1994-4fb8-bc07-d46c948aa415-c000.snappy.parquet',\n 'part-00001-c373a5bd-85f0-4758-815e-7eb62007a15c-c000.snappy.parquet']\n```\n\nSee the [user guide](https://delta-io.github.io/delta-rs/usage/installation/) for more examples.\n\n## Installation\n\n```bash\npip install deltalake\n```\n\nNOTE: official binary wheels are linked against openssl statically for remote\nobjection store communication. Please file Github issue to request for critical\nopenssl upgrade.\n\n\n## Build custom wheels\n\nSometimes you may wish to build custom wheels. Maybe you want to try out some\nunreleased features. Or maybe you want to tweak the optimization of the Rust code.\n\nTo compile the package, you will need the Rust compiler and [maturin](https://github.com/PyO3/maturin):\n\n```sh\ncurl https://sh.rustup.rs -sSf | sh -s\npip install maturin\n```\n\nThen you can build wheels for your own platform like so:\n\n```sh\nmaturin build --release --out wheels\n```\n\nFor a build that is optimized for the system you are on (but sacrificing portability):\n\n```sh\nRUSTFLAGS=\"-C target-cpu=native\" maturin build --release --out wheels\n```\n\n#### Cross compilation\n\nThe above command only works for your current platform. To create wheels for other\nplatforms, you'll need to cross compile. Cross compilation requires installing\ntwo additional components: to cross compile Rust code, you will need to install\nthe target with `rustup`; to cross compile the Python bindings, you will need\nto install `ziglang`.\n\nThe following example is for manylinux2014. Other targets will require different\nRust `target` and Python `compatibility` tags.\n\n```sh\nrustup target add x86_64-unknown-linux-gnu\npip install ziglang\n```\n\nThen you can build the wheel with:\n\n```sh\nmaturin build --release --zig \\\n    --target x86_64-unknown-linux-gnu \\\n    --compatibility manylinux2014 \\\n    --out wheels\n```\n\nIf you expect to only run on more modern system, you can set a newer `target-cpu`\nflag to Rust and use a newer compatibility tag for Linux. For example, here\nwe set compatibility with CPUs newer than Haswell (2013) and Linux OS with \nglibc version of at least 2.24:\n\n```sh\nRUSTFLAGS=\"-C target-cpu=haswell\" maturin build --release --zig \\\n    --target x86_64-unknown-linux-gnu \\\n    --compatibility manylinux_2_24 \\\n    --out wheels\n```\n\nSee note about `RUSTFLAGS` from [the arrow-rs readme](https://github.com/apache/arrow-rs/blob/master/arrow/README.md#performance-tips).\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Native Delta Lake Python binding based on delta-rs with Pandas integration",
    "version": "0.21.0",
    "project_urls": {
        "Homepage": "https://github.com/delta-io/delta-rs",
        "documentation": "https://delta-io.github.io/delta-rs/",
        "repository": "https://github.com/delta-io/delta-rs/tree/main/python/"
    },
    "split_keywords": [
        "deltalake",
        " delta",
        " datalake",
        " pandas",
        " arrow"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c9c3d340e224bbdb0f4a4b0d6e2d019fc714c5e9a1ef680227c1e0accd098026",
                "md5": "d74796b5e35509689cacb99949eab1c7",
                "sha256": "4b4a352da534a173d837906357c808cd36dd216974b9df2c3998acb98d04954a"
            },
            "downloads": -1,
            "filename": "deltalake-0.21.0-cp38-abi3-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d74796b5e35509689cacb99949eab1c7",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 31146730,
            "upload_time": "2024-10-30T15:02:03",
            "upload_time_iso_8601": "2024-10-30T15:02:03.829846Z",
            "url": "https://files.pythonhosted.org/packages/c9/c3/d340e224bbdb0f4a4b0d6e2d019fc714c5e9a1ef680227c1e0accd098026/deltalake-0.21.0-cp38-abi3-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "df6f82cb405d44c5fda7bcd06a5f3487301986a450cc7ba80b269e670c4d1e6e",
                "md5": "01af0aee98a4a84042eb481a9fa5137e",
                "sha256": "2e7762af03fed0a67ce8f89b6b75356a74e485f52923c73a5c850c6c574d3481"
            },
            "downloads": -1,
            "filename": "deltalake-0.21.0-cp38-abi3-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "01af0aee98a4a84042eb481a9fa5137e",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 29362572,
            "upload_time": "2024-10-30T15:03:20",
            "upload_time_iso_8601": "2024-10-30T15:03:20.091679Z",
            "url": "https://files.pythonhosted.org/packages/df/6f/82cb405d44c5fda7bcd06a5f3487301986a450cc7ba80b269e670c4d1e6e/deltalake-0.21.0-cp38-abi3-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e555a0c81b365451e29a049935d42bb1977d8de70c2194f425d11faccde084ab",
                "md5": "34e4490a514452190b6bbbd0233aff7e",
                "sha256": "02870db9dfe4694034fb209cb4822f85ba1a11885e353e11fd0dfb51b0af67d2"
            },
            "downloads": -1,
            "filename": "deltalake-0.21.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "34e4490a514452190b6bbbd0233aff7e",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 35387264,
            "upload_time": "2024-10-30T15:20:47",
            "upload_time_iso_8601": "2024-10-30T15:20:47.322471Z",
            "url": "https://files.pythonhosted.org/packages/e5/55/a0c81b365451e29a049935d42bb1977d8de70c2194f425d11faccde084ab/deltalake-0.21.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7651bc0eeb088c4bdea4628afcfeb0f4bbe254baa8ddfeba05ba2f34468a9d25",
                "md5": "30f3e3597e783c900e1dec39af2001bb",
                "sha256": "92ccd486243dbe17c45a6ca06b108351dfd07708d34e75405fcb13033c63d176"
            },
            "downloads": -1,
            "filename": "deltalake-0.21.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "30f3e3597e783c900e1dec39af2001bb",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 36251662,
            "upload_time": "2024-10-30T15:06:41",
            "upload_time_iso_8601": "2024-10-30T15:06:41.257658Z",
            "url": "https://files.pythonhosted.org/packages/76/51/bc0eeb088c4bdea4628afcfeb0f4bbe254baa8ddfeba05ba2f34468a9d25/deltalake-0.21.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6a3eca359eadd1385f23294fe517bec7aad04d0867c23051f8d6a957b1dd3322",
                "md5": "2c24947515157e74340bc737e377bc3b",
                "sha256": "dc84334a0f8df1f4f5c6ca9aaffbeffb896f43de6744d0c77c306ca8ba27041b"
            },
            "downloads": -1,
            "filename": "deltalake-0.21.0-cp38-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "2c24947515157e74340bc737e377bc3b",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.8",
            "size": 28705433,
            "upload_time": "2024-10-30T15:17:47",
            "upload_time_iso_8601": "2024-10-30T15:17:47.683898Z",
            "url": "https://files.pythonhosted.org/packages/6a/3e/ca359eadd1385f23294fe517bec7aad04d0867c23051f8d6a957b1dd3322/deltalake-0.21.0-cp38-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6423349519b4ec9b81bd3236c20db4641cf2270279e13f4aef7436fc04f15070",
                "md5": "52204713d79fc5212c91bac4c03870f1",
                "sha256": "88f92cede44b2737431dbf86d43ed3b3c8cb73db56e99138aea1a6d93e9c6821"
            },
            "downloads": -1,
            "filename": "deltalake-0.21.0.tar.gz",
            "has_sig": false,
            "md5_digest": "52204713d79fc5212c91bac4c03870f1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4865774,
            "upload_time": "2024-10-30T15:06:45",
            "upload_time_iso_8601": "2024-10-30T15:06:45.575904Z",
            "url": "https://files.pythonhosted.org/packages/64/23/349519b4ec9b81bd3236c20db4641cf2270279e13f4aef7436fc04f15070/deltalake-0.21.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-30 15:06:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "delta-io",
    "github_project": "delta-rs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "deltalake"
}
        
Elapsed time: 0.40060s