foxes.utils.new_instance(base_cls, cls_name, *args, **kwargs)[source]

Run-time factory.

Parameters

base_cls: object

The base class

cls_name: string

Name of the class

args: tuple, optional

Additional parameters for the constructor

kwargs: dict, optional

Additional parameters for the constructor

Returns

obj: object

The instance of the derived class