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 Tests

tox standardizes running tests in Python. It handles creating virtual environments for running tests alongside pytest, our chosen testing library. It also handles generating reports on test results.

  1. Open a bash shell (if on Windows use git bash, WSL, or any shell configured for bash commands).

  2. Clone this repo and navigate to the cloned folder.

  3. Install tox for running our test suite and managing our test environments:

    pip install tox
    
  4. Run the test suite from the shell with tox while in the cloned repo's directory:

    tox -s
    

note: The -s flag prints results to stderr/stdout during pytest-ing.

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.2.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

deltaray-0.2.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for deltaray-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ba4e32f15297fa501989f69972f4781bc8a5176149c0aab75b30f0118368c58d
MD5 cecdf441704f8e9579eef608c4397a04
BLAKE2b-256 f7dc41d6c48cf8e8036d44810d7ed2f2d7839de4f5559c3a84a29d1c7cf57cb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deltaray-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e82c58729c54e7d0e3a439eab47ad3102e2f7c1e13f0c14cc92e3e8ee77e3bc2
MD5 d78210b4045353a78d276a16281d52b6
BLAKE2b-256 9942eac7b2014d1513af9b308473da39665a5aad3abec6f35ac376669a05445f

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