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.11.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.11.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

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

openlineage_sql-0.11.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

openlineage_sql-0.11.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (3.9 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.5+ i686

File details

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

File metadata

  • Download URL: openlineage_sql-0.11.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.11.0.tar.gz
Algorithm Hash digest
SHA256 c27ebcd72dc55f6ec21c4e4ea89186ea3f7ba522c152ef3a4ac4e507c463b038
MD5 844cc949cf254a9887ede662aa8388bf
BLAKE2b-256 597b6a026eefc4a4603c847ba26464dbcbe96bac20a333f281ed8159f509b070

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openlineage_sql-0.11.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ccbead58e0ba8bf7838c6dceb73c0f24ceb5816776195cc8ac092c1725de9f61
MD5 370457b549751024b0da0c78b66a6cc3
BLAKE2b-256 b1f05938956b33dc2609e1a2efc46f53e03485927abe0799c1d8f0a367053272

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openlineage_sql-0.11.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c841af41b452d7a16a566ddb646d18d8d53c669daa7725950a29edc4e463fe7e
MD5 fbb7dcd3fe8dc42d4062116387b72827
BLAKE2b-256 b2f88e32934c159b5b6d9ff4304837b701bc092f2afc1b29d84cbbc73e45e28c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openlineage_sql-0.11.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 bba49c78d7398bc75afa11e2115126e1df966bc341813352e64989e8f4b9fec8
MD5 ba417e54fe794b0b6911d6a27a317bd7
BLAKE2b-256 1d3460c65ef6c1dc5255127ec4bb4c0ae8db7709848ca515e9d855d7c3afca6e

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