PYTHONPUBLIC API

fastsim.api.scenario

Public Python API for fastsim.api.scenario; signatures are extracted directly from FastSim source.

Source src/fastsim/api/scenario.py

Public symbols 6

class

ScenarioSection

L31
class ScenarioSection(StrEnum)

The three authored sections in a locked :class:`ScenarioPlan`.

class

ScenarioReadErrorCode

L39
class ScenarioReadErrorCode(StrEnum)

Stable error codes emitted by ``fastsim.scenario.read@1``.

class

ScenarioComponentSelection

L49
class ScenarioComponentSelection(object)

Exact Scenario component release selected by a referenced Run.

FieldTypeDefault
identitystr—
requestedstr—
versionstr—
variantstr—
manifest_sha256str—
class

ScenarioIdentity

L80
class ScenarioIdentity(object)

Portable identity of the immutable Scenario projected for one Run.

FieldTypeDefault
run_idstr—
plan_digeststr—
scenario_digeststr—
source_kindstr—
selected_componentScenarioComponentSelection | None—
schemastrSCENARIO_PROJECTION_SCHEMA
class

ScenarioReadError

L112
class ScenarioReadError(RuntimeError)

Typed, bounded failure from ``fastsim.scenario.read@1``.

class

ScenarioReadService

L144
class ScenarioReadService(Protocol)

Read-only, section-scoped projection of one locked ScenarioPlan.

service_id
ScenarioReadService.service_id(self) -> str
available_sections
ScenarioReadService.available_sections(self) -> tuple[ScenarioSection, ...]
identity
ScenarioReadService.identity(self) -> ScenarioIdentity
get
ScenarioReadService.get(self, section: ScenarioSection | str) -> FrozenMapping | None