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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openlineage_sql-0.14.0.tar.gz.
File metadata
- Download URL: openlineage_sql-0.14.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a62ae27db81c4d3710b819b23dec1e78f7eff1800dbdf71a7c319ef459c8cac4
|
|
| MD5 |
47431c2e83afc837eefbbd356ba1ccc2
|
|
| BLAKE2b-256 |
248c5ca1d492c4007ada7470f408d9b7f81578fd0baee9e2ec39726ef3fcea4a
|
File details
Details for the file openlineage_sql-0.14.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: openlineage_sql-0.14.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bf85cf8d4ccd5d53e68a0b33bd1f6872d2a5953550fb3b8893779a25eb7df76
|
|
| MD5 |
b4a2e0c5dc90f02db9cacead9301ef23
|
|
| BLAKE2b-256 |
c7705368afcde358fde17893529e6ab1f18cf95bad217d66f36b00bfebd08fef
|
File details
Details for the file openlineage_sql-0.14.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: openlineage_sql-0.14.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b5c89a9a7409d95675d7cf6c9b2c6f21e27a56d8a75cca996c524ff1713253f
|
|
| MD5 |
389b9e28ec3e4af343ee59aa1dfde278
|
|
| BLAKE2b-256 |
e48fc4021efdbde6c9b06a5b59029af59e03c01af03e49999feb08f0840cf149
|
File details
Details for the file openlineage_sql-0.14.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: openlineage_sql-0.14.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 4.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73455c5bd3feb35c7309e657cd8da5c157cae60a4599c8f7bea149f13a0b1b3b
|
|
| MD5 |
5a0305b51ea1910c06e10e181de9754d
|
|
| BLAKE2b-256 |
22cbc8419f3cdf2660fdfc188ec755f3e06eb7ef36465e9ecc1e2359197be5c5
|
File details
Details for the file openlineage_sql-0.14.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.
File metadata
- Download URL: openlineage_sql-0.14.0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.7+, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ae7a28cd9331497f0c61549b6fd44300ff35f5aa0204621b10d493d8700d4ad
|
|
| MD5 |
6308b8c839321fab2f4c54063d081c1c
|
|
| BLAKE2b-256 |
0b132d69d26e84e7a80953bb8b1b4130c379c65d18809345f42eb38a528c527a
|