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.4.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.4.tar.gz.
File metadata
- Download URL: tablelineage-0.0.4.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 |
01a6b55ab197f44f78a5bc25a695608ce76fccd31725a447e6adbbc7fbdc5458
|
|
| MD5 |
28ca37a350e3a5733107e62e2efd1733
|
|
| BLAKE2b-256 |
513d2f8ef46d91fe4e639511d638d6c009ef3691d0f0cafb0debb99af3cf24f6
|
File details
Details for the file tablelineage-0.0.4-py3-none-any.whl.
File metadata
- Download URL: tablelineage-0.0.4-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 |
ab918b48557ac6cd35e4519700a9c345371913967ac49b2449bfb02195978cc1
|
|
| MD5 |
2e517eb69de5547b8279be6fca3d0120
|
|
| BLAKE2b-256 |
8533bff1e05c7ba79800f5b9f05e4b4ceb902e151ec893e62ab89d823989e9da
|