pasteur.module.ModuleFactory

pasteur.module.ModuleFactory#

class pasteur.module.ModuleFactory(cls, *args, name=None, **kwargs)[source]#

Some modules (such as transformers) require multiple instances in the system. In this case, it’s not possible to provide a module instance for them.

For those types, their instance is based on ModuleFactory.

Attributes

Methods

build(*args, **kwargs)

Build is used to create the new instance.

build(*args, **kwargs)[source]#

Build is used to create the new instance. You can override this function to customize instance creation.

name: str = ''#