meld.system.scalers.ScalerRegistry

class meld.system.scalers.ScalerRegistry(name, bases, attrs)[source]

Bases: type

Metaclass that maintains a registry of scaler types.

All classes that decend from Scaler inherit ScalerRegistry as their metaclass. ScalerRegistry will automatically maintain a map between the class attribute ‘_scaler_key_’ and all scaler types.

The function get_constructor_for_key is used to get the class for the corresponding key.

__init__(name, bases, attrs)[source]

Methods

__init__(name, bases, attrs)

get_constructor_for_key(key)

Get the constructor for the scaler type matching key.

mro()

Return a type's method resolution order.

classmethod get_constructor_for_key(key)[source]

Get the constructor for the scaler type matching key.