stilt.transforms.load_transform#
- stilt.transforms.load_transform(spec)[source]#
Return the transform for one config entry.
specis either a transform already (any object withapply) or a mapping with akind. Thekindis a built-in name or the import path of a pydantic model class, which is validated from the remaining keys. Only a pydantic model can be written back toconfig.yaml.- Raises:
ImportError – If
kindnames a class that cannot be imported on this machine.- Return type:
- Parameters:
spec (Any)