Skip to main content

Library extracting source and destination tables from sql statements

Project description

OpenLineage SQL Parser

Library that extracts lineage from sql statements.

Usage

If you're using OpenLineage integration, there's good chance that you're already using this integration.

This library can be used both as Python library and as Rust library, however it's not published at Cargo yet.

Installation

Python:

$ pip install openlineage-sql 

To install from source, you need to have Rust toolchain.

curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env

You can run cargo tests then:

cargo test

To build Python wheel for your system and architecture you need Maturin build system. It's recommended to install this in virtualenv.

python -m pip install maturin
maturin build --out target/wheels

You can verify that library has been properly build by running

pip install openlineage-sql --no-index --find-links target/wheels --force-reinstall
python -c "import openlineage_sql"

Todo:

  • Support larger part of SQL language
  • Column-level lineage
  • Python as a cargo feature
  • Explore Java integration

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 Distribution

openlineage_sql-0.10.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distributions

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

openlineage_sql-0.10.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

openlineage_sql-0.10.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

openlineage_sql-0.10.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (3.8 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.5+ i686

File details

Details for the file openlineage_sql-0.10.0.tar.gz.

File metadata

  • Download URL: openlineage_sql-0.10.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for openlineage_sql-0.10.0.tar.gz
Algorithm Hash digest
SHA256 b5e8f0a0be22ed6d5c5678aff72592e19f9c564de5b187b66e23a4861b0365cf
MD5 66cd597fc011fc6679fb501feb3a12c4
BLAKE2b-256 075d86d86906b47ad96128c37330823a0d7d643250ff5f4c9c23b28ef269cf8f

See more details on using hashes here.

File details

Details for the file openlineage_sql-0.10.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for openlineage_sql-0.10.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 418618ece941d5766b60b893208565ceecde5b44b8e46c3434142f1c554e8f3e
MD5 d5d9b9faf9c2aa539b4f5f4612ea152d
BLAKE2b-256 c870b33d53b85a108fd44f980861e3a22d65d2823f52c2950d0ae89892a95bd9

See more details on using hashes here.

File details

Details for the file openlineage_sql-0.10.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for openlineage_sql-0.10.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fd461238630b399ca51928e36294e5fa4f8e6780fa36d029d6663aac0997aba8
MD5 b00c72af2d90720a31d9f5283e80d24c
BLAKE2b-256 e6810075168655d70aa4fbc69cfd42979db1faa62c0ebfcd87f4392d5f5a8f62

See more details on using hashes here.

File details

Details for the file openlineage_sql-0.10.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for openlineage_sql-0.10.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 cc57e7d23364fb4e7203660c5e53d6919ec5f48384ab73c8595a8f47b3c68ae5
MD5 8bbac0bc16b1b10a6776ff8990fe653f
BLAKE2b-256 2fc2dd687072029fe230f3c058668506d0c507c4ea220628ec9383f1330655f1

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