Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tablelineage-0.0.5-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for tablelineage-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a7e7816708fadd42fa87269ceb1b854732ae1c8fd4c9f02d99bab19898f62a2d
MD5 02c3464b7cc43bed3f18d6a1b00a5ad9
BLAKE2b-256 beeeb0b8414029e067dc25854fe90d5e8db6b47f8108ac8fb32047db96d3cff6

See more details on using hashes here.

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

Hashes for tablelineage-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a806a3051db207dda9676b18317cc46bde544ebc6c34956f6a092cc847d69b74
MD5 231d86e00e59b9952d8fccf915eb2361
BLAKE2b-256 987cc22205c70fbb8887ef3d95b2772c2e5f6a3a6788bade2e41732ee173ab6c

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