Skip to content

Explorer

The Explorer displays a project Spec, its build provenance, and its execution plan. The functions below prepare and check the data used by the static Explorer. They do not build the project or run calculations.

For user workflows, see the Explorer guide and uptimely explore CLI reference.

Prepare versioned, JSON-ready presentation data for the Explorer.

ExplorerPresentationData

Bases: TypedDict

Versioned data consumed by the Explorer frontend.

format_version instance-attribute

format_version: Literal[5]

project instance-attribute

project: dict[str, object]

build instance-attribute

build: ExplorerBuildData

scope instance-attribute

scope: dict[str, object]

catalogs instance-attribute

catalogs: dict[str, object]

graphs instance-attribute

graphs: dict[str, object]

plan instance-attribute

plan: dict[str, object]

animation instance-attribute

animation: dict[str, object]

build_presentation_data

build_presentation_data(spec_definition: Spec, plan: ExecutionPlan, *, features: list[str] | None = None, validate_spec: bool = True, project_root: Path | None = None, src_path: Path | None = None, build_manifest: BuildManifest | None = None) -> ExplorerPresentationData

Prepare complete Explorer presentation data without writing files.

Parameters:

Name Type Description Default
spec_definition Spec

Project specification used for catalog labels and metadata.

required
plan ExecutionPlan

Compiled execution plan; analytical functions are not executed.

required
features list[str] | None

Selected output features, or None for all features.

None
validate_spec bool

Run semantic checks when building the feature graph.

True
project_root Path | None

Project directory used to identify project-owned source files.

None
src_path Path | None

Optional source directory, relative to the project root unless absolute. Defaults to src.

None
build_manifest BuildManifest | None

Manifest for the generated build, when available.

None

Returns:

Type Description
ExplorerPresentationData

Versioned JSON-ready project, catalog, graph, plan, and animation data.

validate_presentation_data

validate_presentation_data(value: object) -> ExplorerPresentationData

Validate the versioned structure expected by the Explorer frontend.