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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tablelineage-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a52fa7a1edbc65be852a91960d5da355977601c0041a844271899525b3a7db3b
MD5 fadbc8340e9e2fda3ad858d26d4a9af1
BLAKE2b-256 8122588510f10ca80c4317e233126bd500bf6aa5b9109eca5c1470a901e9362b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tablelineage-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 beaef06189fbf510b89b70900a555ddbadd4e9151a5395ae43a095da63a7c2cd
MD5 f9920cd2e0a3808fb7554d96cda83dde
BLAKE2b-256 1fd2cf41af4cff081ef6da2c4dcd58d7023f498057829e376b1a4d3437b8b1ee

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