otupy.core.encoder.register_encoder
- register_encoder(cls)
Register an Encoder
This function is used to register a new Encoder. It can be used as a decorator to the class that defines the new Encoder. :param cls: The class definition that must be registered. The class internally holds its name. :return: The same class passed as argument (used to create a decoratetor).