Skip to content

yggdrasil.databricks.service

service

Base class for every Databricks service wrapper.

Split out of :mod:yggdrasil.databricks.client so service modules can import :class:DatabricksService without pulling the whole client module's transitive surface.

DatabricksService

DatabricksService(client: Optional[DatabricksClient] = None)

Bases: ABC

Base class for every Databricks service wrapper.

Subclasses are plain classes (no @dataclass); they inherit the client-only constructor by default and override :meth:__init__ explicitly when they need to accept additional configuration.

wheels property

wheels: 'Wheels'

Wheel registry service (shorthand for client.wheels).

environments property

environments: 'Environments'

Base-environment service (shorthand for client.environments).

tables property

tables: 'Tables'

Collection-level Unity Catalog table service (shorthand for client.tables).

views property

views: 'Tables'

Alias for :attr:tables — :class:Table covers both managed/external tables and view-shaped securables.

catalogs property

catalogs: 'Catalogs'

Collection-level Unity Catalog hierarchy service (shorthand for client.catalogs).

schemas property

schemas: 'Schemas'

Collection-level Unity Catalog schema service (shorthand for client.schemas).

volumes property

volumes: 'Volumes'

Collection-level Unity Catalog volume service (shorthand for client.volumes).

genie property

genie: 'Genie'

Genie service (shorthand for client.genie).

ai property

ai: 'DatabricksAI'

Databricks AI umbrella service (shorthand for client.ai).

default_tags

default_tags(update: bool = True) -> dict[str, str]

Return default resource tags for Databricks assets.

Returns:

Type Description
dict[str, str]

A dict of default tags.