Skip to main content
Version: 25.1

snorkelflow.client.operators.add_operator_class

snorkelflow.client.operators.add_operator_class(operator, overwrite=False)

Add an operator class.

Parameters for custom operators are hard-coded within the user-defined function. Custom operator classes have parameters that are specified in the Application Studio overview.

Notes

Available only in the full SDK

Parameters

NameTypeDefaultInfo
operatorType[Any]An custom Operator class that will be serialized.
overwriteOptional[bool]FalseOverwrite an existing operator class of the same name if one already exists.

Returns

Metadata associated with this code asset

Return type

Dict(str, any)

Raises

  • ValueError – If the custom operator class name does not begin with Custom

  • ValueError – If the serialized operator class is too large

  • ValueError – If an operator class with the same name already exists