Plan models¶
uptimely.plan provides the plan models and JSON helpers.
An Invocation pairs explicit function-call data with an optional
InvocationSemantics contract.
Portable execution-plan data transfer objects.
ExecutionPlan
¶
Bases: _PlanModel
A call schedule with named results and final dataset aliases.
invocations_by_id
cached
property
¶
Return invocations indexed by ID.
execution_stages
cached
property
¶
Return invocations grouped in stage order.
execution_invocations
cached
property
¶
Return invocations in stage order.
entrypoints
cached
property
¶
Return distinct entrypoints in invocation declaration order.
input_invocations
cached
property
¶
Index producers explicitly referenced by each invocation's arguments.
function_ids
cached
property
¶
Return declared function IDs from invocations with semantics.
profile_ids
cached
property
¶
Return declared profile IDs from invocations with semantics.
features
cached
property
¶
Index declared output features by their producing invocations.
calculated_features
cached
property
¶
Return feature IDs from compute calls publishing targets.
count_per_role
cached
property
¶
Count invocations by declared role.
validate_version
classmethod
¶
Require the exact integer format version.
validate_schedule
¶
Check identifiers, single-assignment returns, and reference ordering.
Invocation
¶
Bases: _PlanModel
A function call and an optional immutable return name.
referenced_results
cached
property
¶
Return distinct result references in the invocation's arguments.
InvocationSemantics
¶
Bases: _PlanModel
Analytical contract and Spec provenance for one function invocation.
dataframe_input_scope
class-attribute
instance-attribute
¶
fragment_dimensions
class-attribute
instance-attribute
¶
row_count_relation
class-attribute
instance-attribute
¶
key_relation
class-attribute
instance-attribute
¶
row_order_relation
class-attribute
instance-attribute
¶
existing_data_relation
class-attribute
instance-attribute
¶
output_features
class-attribute
instance-attribute
¶
input_features
class-attribute
instance-attribute
¶
target_identifiers
class-attribute
instance-attribute
¶
fragment_keys
class-attribute
instance-attribute
¶
output_types
class-attribute
instance-attribute
¶
column_types
class-attribute
instance-attribute
¶
argument_types
class-attribute
instance-attribute
¶
require_declared_identifier
classmethod
¶
Keep declaration-specific errors clear for required invocation strings.
validate_contracts
¶
Require valid role/result combinations and distinct invocation outputs.
Stage
¶
Bases: RootModel[list[NonEmptyString]]
Ordered group of invocation identifiers in a plan schedule.