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.
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
|
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 |
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 the versioned structure expected by the Explorer frontend.