fabricatio_sandbox.models.sandbox

Data models for the sandbox subpackage.

Classes

SandboxResult

Result of a sandboxed operation.

Module Contents

class fabricatio_sandbox.models.sandbox.SandboxResult(/, **data: Any)

Bases: fabricatio_core.models.generic.Display

Result of a sandboxed operation.

session

The underlying sandbox session after the operation.

diff

Per-file unified diffs for all mutations, or None if unchanged.

applied

Whether session.apply() was called successfully.

session: fabricatio_sandbox.rust.SandboxSession
diff: dict[str, str]
applied: bool = False
display() str

Return a human-readable summary of the sandbox result.