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.7.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.7-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file tablelineage-0.0.7.tar.gz.

File metadata

  • Download URL: tablelineage-0.0.7.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tablelineage-0.0.7.tar.gz
Algorithm Hash digest
SHA256 8b4f7038e70546e6e735767326b6f6d726fd1080ccc330b4a17d0944a644b3d9
MD5 069c849c3e6a01e95bb59742be10c82e
BLAKE2b-256 cd98751fff17e1a733509705eb9808fb373d95d77686cc1d8cec0e95e6d836f6

See more details on using hashes here.

File details

Details for the file tablelineage-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: tablelineage-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for tablelineage-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9e733ac70986ecc82dbcceec37e414167b56641b70657871d7d86883e889c17d
MD5 5e952e59a8f04577d78497041a865fad
BLAKE2b-256 30b66491e124e2229269372f3bd14ef217b94d7ab24c1479a38a9c46b0afe875

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