A python library to get unity catalog table lineage information using azure databricks api
Project description
tablelineage
A Python package that can be used to retrieve data lineage using Databricks Data Lineage REST API
Installation
This package is intended to be installed within Databricks as a Python library.
Example Usage
from tablelineage import ShowMeLineage
## Define the parameters
catalog_name = "<catalog_name>"
schema_name = "<schema_name>"
table_name = "<table_name>"
databricks_instance = "<databricks_instance" # example: adb--xxxxxxxxxxx.x.azuredatabricks.net
workspace_id = "<workspace_id>"
conn = ShowMeLineage(databricks_instance, workspace_id)
df = conn.getTableLineage(catalog_name, schema_name, table_name)
df.display()
"""
Always exclude 'NA' in the 'lineage_direction' column from the resulting dataframe,
unless you are interested in the links to the notebooks referencing specified table/view name.
"""
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
tablelineage-0.0.5.tar.gz
(2.7 kB
view details)
Built Distribution
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 tablelineage-0.0.5.tar.gz.
File metadata
- Download URL: tablelineage-0.0.5.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7e7816708fadd42fa87269ceb1b854732ae1c8fd4c9f02d99bab19898f62a2d
|
|
| MD5 |
02c3464b7cc43bed3f18d6a1b00a5ad9
|
|
| BLAKE2b-256 |
beeeb0b8414029e067dc25854fe90d5e8db6b47f8108ac8fb32047db96d3cff6
|
File details
Details for the file tablelineage-0.0.5-py3-none-any.whl.
File metadata
- Download URL: tablelineage-0.0.5-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a806a3051db207dda9676b18317cc46bde544ebc6c34956f6a092cc847d69b74
|
|
| MD5 |
231d86e00e59b9952d8fccf915eb2361
|
|
| BLAKE2b-256 |
987cc22205c70fbb8887ef3d95b2772c2e5f6a3a6788bade2e41732ee173ab6c
|