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.3.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.3.tar.gz.
File metadata
- Download URL: tablelineage-0.0.3.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 |
5f52e3f139e857ccac4c901c39a7d3f2c5af710eb2278a1b031ef382a5e94e86
|
|
| MD5 |
4ba87d9ba87a826999b155a37e6b4bef
|
|
| BLAKE2b-256 |
820f4f852c876e7eaf8c49f064410a37129576df859fbc1f5bf36ae5e22ae99b
|
File details
Details for the file tablelineage-0.0.3-py3-none-any.whl.
File metadata
- Download URL: tablelineage-0.0.3-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 |
26175f4a45f302c99fa0e69807de4b4b484e41ef6be497e1ca8ae249c8d57002
|
|
| MD5 |
04a44fe8e69dddf15c26e2bddfe8e255
|
|
| BLAKE2b-256 |
3b91035b245a776566363a7102640987e3bda2757596fb3d6406b752bd10d56f
|