Amundsen Common

0.32.0 · active · verified Fri Apr 17

Amundsen Common is a Python library providing shared data models, utilities, and abstractions for the various components of the Amundsen data discovery and metadata platform (e.g., Metadata service, Search service, Databuilder, Frontend). It ensures consistency across the ecosystem by defining core entities like Tables, Dashboards, and Users. The current version is 0.32.0, with releases typically synchronized with the broader Amundsen monorepo updates, leading to an irregular release cadence.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to import and instantiate core Amundsen Common data models, such as `Table`, and how to use common enumerations like `ResourceType`.

from amundsen_common.models.table import Table
from amundsen_common.entity.resource_type import ResourceType

# Create a Table object
table = Table(
    database='my_database',
    cluster='my_cluster',
    schema_name='public',
    name='users_data',
    description='Contains user login and profile information.',
    uri='my_database://my_cluster/public/users_data'
)

print(f"Created Table: {table.name} from {table.database}.{table.schema_name}")
print(f"Table URI: {table.uri}")

# Using a ResourceType enum
print(f"Resource Type for Table: {ResourceType.Table.name}")
print(f"Resource Type for Dashboard (value): {ResourceType.Dashboard.value}")

view raw JSON →