PYTHONPUBLIC API

fastsim.api.scenario

fastsim.api.scenario 的当前公共 Python API;签名从 vNext AST 直接提取。

源码 src/fastsim/api/scenario.py

公开符号 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.

字段类型默认值
identitystr
requestedstr
versionstr
variantstr
manifest_sha256str
class

ScenarioIdentity

L80
class ScenarioIdentity(object)

Portable identity of the immutable Scenario projected for one Run.

字段类型默认值
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

当前源码未提供公开 docstring。

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

当前源码未提供公开 docstring。

identity
ScenarioReadService.identity(self) -> ScenarioIdentity

当前源码未提供公开 docstring。

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

当前源码未提供公开 docstring。