Skip to main content

Delta reader for the Ray open-source toolkit for building ML applications

Project description

deltaray

License

The deltaray library provides a Delta Lake table reader for the Ray open-source ML toolkit.

Quickstart

Install from PyPI:

pip install deltaray

Install from GitHub:

pip install git+https://github.com/delta-incubator/deltaray.git

Basic use, check notebooks for more detailed example:

# Standard Libraries
import pathlib

# External Libraries
import deltaray
import deltalake as dl
import pandas as pd


# Creating a Delta Table
cwd = pathlib.Path().resolve()
table_uri = f'{cwd}/tmp/delta-table'
df = pd.DataFrame({'id': [0, 1, 2, 3, 4, ], })
dl.write_deltalake(table_uri, df)

# Reading our Delta Table
ds = deltaray.read_delta(table_uri)
ds.show()

Running Test Matrix

note: you can add -s flag to print to stderr/stdout during pytest-ing

tox

Building Distribution

Building Wheel:

python setup.py bdist_wheel sdist

Installing Wheel:

pip install /path/to/wheel/..

Project details


Download files

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

Source Distribution

deltaray-0.1.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

deltaray-0.1.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file deltaray-0.1.1.tar.gz.

File metadata

  • Download URL: deltaray-0.1.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for deltaray-0.1.1.tar.gz
Algorithm Hash digest
SHA256 06569630a1d4781dbde397bc9892bffa3337fcac26f79e73f5fc18b0f0367e85
MD5 e7234c58409b5008b50342f566380164
BLAKE2b-256 4164016f93a4ca704c7e5003918fce98dde29c4c33b990c8809a51bca9047104

See more details on using hashes here.

File details

Details for the file deltaray-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: deltaray-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for deltaray-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd6d65631c480cc6237e5c1a18b2e5168f0f078b995ee0bb5618d382d2bd31a5
MD5 feced99adf557e5f997a78061927b6c5
BLAKE2b-256 2a8d28ccd8a57dd317e4c5f44c916c06f976bf4d8ee4f1bc3535cf6d7d8ea854

See more details on using hashes here.

Supported by

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