prefect.utilities.schema_tools.hydration

Functions

handler

handler(kind: PrefectKind) -> Callable[[Handler], Handler]

call_handler

call_handler(kind: PrefectKind, obj: dict[str, Any], ctx: HydrationContext) -> Any

null_handler

null_handler(obj: dict[str, Any], ctx: HydrationContext)

json_handler

json_handler(obj: dict[str, Any], ctx: HydrationContext)

jinja_handler

jinja_handler(obj: dict[str, Any], ctx: HydrationContext) -> Any

workspace_variable_handler

workspace_variable_handler(obj: dict[str, Any], ctx: HydrationContext) -> Any

hydrate

hydrate(obj: dict[str, Any], ctx: Optional[HydrationContext] = None) -> dict[str, Any]

Classes

HydrationContext

Methods:

build

build(cls, session: AsyncSession, raise_on_error: bool = False, render_jinja: bool = False, render_workspace_variables: bool = False) -> Self

Placeholder

Methods:

is_error

is_error(self) -> bool

RemoveValue

Methods:

is_error

is_error(self) -> bool

HydrationError

Methods:

is_error

is_error(self) -> bool

is_error

is_error(self) -> bool

message

message(self) -> str

KeyNotFound

Methods:

is_error

is_error(self) -> bool

key

key(self) -> str

message

message(self) -> str

message

message(self) -> str

ValueNotFound

Methods:

key

key(self) -> str

key

key(self) -> str

message

message(self) -> str

TemplateNotFound

Methods:

key

key(self) -> str

key

key(self) -> str

message

message(self) -> str

VariableNameNotFound

Methods:

key

key(self) -> str

key

key(self) -> str

message

message(self) -> str

InvalidJSON

Methods:

is_error

is_error(self) -> bool

message

message(self) -> str

message

message(self) -> str

InvalidJinja

Methods:

is_error

is_error(self) -> bool

message

message(self) -> str

message

message(self) -> str

WorkspaceVariableNotFound

Methods:

is_error

is_error(self) -> bool

message

message(self) -> str

message

message(self) -> str

variable_name

variable_name(self) -> str

WorkspaceVariable

Methods:

is_error

is_error(self) -> bool

ValidJinja

Methods:

is_error

is_error(self) -> bool