Skip to content

cape_privacy.spark.registry#

get#

get(transformation: str) -> TransformationCtor

Returns the constructor for the given key.

Arguments:

  • transformation - The key of transformation to retrieve.

register#

register(label: str, ctor: TransformationCtor)

Registers a new transformation constructor under the label provided.

Arguments:

  • label - The label that will be used as the key in the registry
  • ctor - The transformation constructor