checkQC.handlers.qc_handler_factory module

class checkQC.handlers.qc_handler_factory.QCHandlerFactory[source]

Bases: object

This class provides way of finding and instantiating a concrete QCHandler implementation. This allows QCHandlers to be instantiated dynamically at runtime e.g. based on what is specified in a config file.

static create_subclass_instance(class_name, class_config)[source]

This method will look for a class with the given class_name in the checkQC.handlers module. If it can find a class with a matching name it will return a instance of that class.

  • class_name – the name of the class to instantiate
  • class_config – dictionary with configuration for the class

A instance of the class represented by class_name