(cls, aggregator_name)
return aggregator_class
Retrieves a class object of a specific aggregator.

        Args:
            aggregator_name (unicode): name of the aggregator to retrieve.

        Returns:
            Instance of Aggregator class object.

        Raises:
            KeyError: if the aggregator is not registered.
Retrieves a class object of a specific aggregator.
Retrieves a class object of a specific aggregator .
def get_aggregator(cls, aggregator_name):
        """Retrieves a class object of a specific aggregator.

        Args:
            aggregator_name (unicode): name of the aggregator to retrieve.

        Returns:
            Instance of Aggregator class object.

        Raises:
            KeyError: if the aggregator is not registered.
        """
        try:
            aggregator_class = cls._class_registry[aggregator_name.lower()]
        except KeyError:
            raise KeyError(
                'No such chart type: {0:s}'.format(aggregator_name.lower()))
        return aggregator_class
def get_aggregator ( cls , aggregator_name ) : try : aggregator_class = cls . _class_registry [ aggregator_name . lower ( ) ] except KeyError : raise KeyError ( 'No such chart type: {0:s}' . format ( aggregator_name . lower ( ) ) ) return aggregator_class