DataTranslatorRegistry#

class glue.config.DataTranslatorRegistry#

Bases: Registry

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

Attributes Summary

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#

Methods Documentation

__call__(target_cls, priority=0)#

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)#
remove(target_cls)#