DataTranslatorRegistry#

class glue.config.DataTranslatorRegistry[source]#

Bases: Registry

Stores data translators, which are classes that define methods to translate between Data objects and other kinds of data containers.

Attributes Summary

supported_classes

Methods Summary

__call__(target_cls[, priority])

This is provided so that registry instances can be used as decorators.

get_handler_for(data_or_class)

remove(target_cls)

Attributes Documentation

supported_classes[source]#

Methods Documentation

__call__(target_cls, priority=0)[source]#

This is provided so that registry instances can be used as decorators. The decorators should add the decorated code object to the registry, and return the original function

get_handler_for(data_or_class)[source]#
remove(target_cls)[source]#