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

Placeholder

Methods:

is_error

is_error(self) -> bool

RemoveValue

HydrationError

Methods:

is_error

is_error(self) -> bool

message

message(self) -> str

KeyNotFound

Methods:

message

message(self) -> str

key

key(self) -> str

ValueNotFound

Methods:

key

key(self) -> str

TemplateNotFound

Methods:

key

key(self) -> str

VariableNameNotFound

Methods:

key

key(self) -> str

InvalidJSON

Methods:

message

message(self) -> str

InvalidJinja

Methods:

message

message(self) -> str

WorkspaceVariableNotFound

Methods:

variable_name

variable_name(self) -> str

message

message(self) -> str

WorkspaceVariable

ValidJinja