mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
14 lines
337 B
Python
14 lines
337 B
Python
from datahub.metadata.urns import TagUrn
|
|
from datahub.sdk import Chart, DataHubClient
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
chart = Chart(
|
|
name="example_chart",
|
|
platform="looker",
|
|
description="looker chart for production",
|
|
tags=[TagUrn(name="production"), TagUrn(name="data_engineering")],
|
|
)
|
|
|
|
client.entities.upsert(chart)
|