PYTHONPUBLIC API

fastsim.api.snapshots

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

Source src/fastsim/api/snapshots.py

Public symbols 4

class

ApplicationSnapshotError

L20
class ApplicationSnapshotError(ValueError)

An application snapshot contains non-portable or inconsistent data.

class

ApplicationState

L24
class ApplicationState(StrEnum)

Stable externally observable state of one FastSim Run.

class

ApplicationFailureRecord

L38
class ApplicationFailureRecord(object)

Bounded failure facts that never retain the originating exception.

FieldTypeDefault
operationstr—
error_typestr—
messagestr—
fatalbool—
from_exception
ApplicationFailureRecord.from_exception(cls, error: BaseException, *, operation: str, fatal: bool) -> ApplicationFailureRecord

Lower an arbitrary, possibly hostile exception to exact builtins.

class

ApplicationSnapshot

L76
class ApplicationSnapshot(object)

Cross-thread-readable public state for exactly one compiled Run.

FieldTypeDefault
run_idstr—
plan_digeststr—
stateApplicationState—
runtimeRuntimeSnapshot—
pluginsPluginHostSnapshot | None—
failurestuple[ApplicationFailureRecord, ...]—
application_thread_idint—