catalog_workspace.

load_declarative_workspace

load_declarative_workspace(workspace_id: str, layout_root_path: Path = Path.cwd())

Loads declarative workspaces layout, which was stored using store_declarative_workspace.

Parameters

nametypedescription
workspace_idstringWorkspace identification string e.g. "demo"
layout_root_pathOptional[Path]Path to the root of the layout directory. Defaults to Path.cwd().

Returns

typedescription
CatalogDeclarativeWorkspaceModelObject Containing declarative Logical Data Model and declarative Analytical Model.

Example

# Load a declarative workspace
declarative_workspace = sdk.catalog_workspace.load_declarative_workspace(
    workspace_id="123",
    layout_root_path=Path.cwd()
)