datagnosis.plugins.generic package#

class GenericPlugins[source]#

Bases: datagnosis.plugins.core.plugin.PluginLoader

add(name: str, cls: Type) datagnosis.plugins.core.plugin.PluginLoader#

Add a new plugin

get(name: str, *args: Any, **kwargs: Any) Any#

Create a new object from a plugin.

Parameters

name (str) – The name of the plugin

Raises
  • ValueError – raises if the plugin doesn’t exist

  • ValueError – raises if the plugin cannot be loaded

Returns

The new object

Return type

Any

get_type(name: str) Type#

Get the class type of a plugin.

Parameters

name (str) – The name of the plugin

Raises
  • ValueError – raises if the plugin doesn’t exist

  • ValueError – raises if the plugin cannot be loaded

Returns

The class of the plugin

Return type

Type

list() List[str]#

Get all the available plugins.

reload() datagnosis.plugins.core.plugin.PluginLoader#
types() List[Type]#

Get the loaded plugins types

Submodules#