stilt.transforms.load_transform#

stilt.transforms.load_transform(spec)[source]#

Return a transform for one config entry.

spec may already be a transform (anything with apply), or a mapping with a kind: a built-in name, or a dotted import path to a user class that is constructed from the remaining keys (cls.model_validate for a pydantic model, cls(**keys) otherwise). An unimportable path yields an UnresolvedTransform rather than failing the load.

Return type:

Any

Parameters:

spec (Any)