PYTHONPUBLIC API

fastsim.api.scenario

Current public Python API for fastsim.api.scenario; signatures are extracted directly from the vNext AST.

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

No public docstring is provided in the current source.

available_sections
ScenarioReadService.available_sections(self) -> tuple[ScenarioSection, ...]

No public docstring is provided in the current source.

identity
ScenarioReadService.identity(self) -> ScenarioIdentity

No public docstring is provided in the current source.

get
ScenarioReadService.get(self, section: ScenarioSection | str) -> FrozenMapping | None

No public docstring is provided in the current source.