Skip to content

actor

etl_craft.core.actor

The identity responsible for an Engine DB action.

ActorKind

Bases: StrEnum

How an actor reached the engine.

Actor dataclass

A validated name and its source.

__post_init__

__post_init__() -> None

Refuse identities that cannot safely fit an audit record.

resolve_actor

resolve_actor() -> Actor

Resolve the command's identity from its environment or the local user and host.

current_actor

current_actor() -> Actor

Return the scoped identity, or the engine's system identity for library calls.

acting_as

acting_as(actor: Actor) -> Iterator[None]

Scope an identity without leaking it to the next command or transaction.