cement.core.plugin

Cement core plugins module.

class cement.core.plugin.PluginHandler(**kw)[source]

Bases: cement.core.plugin.PluginInterface, cement.core.handler.Handler

Plugin handler implementation.

class cement.core.plugin.PluginInterface(**kw)[source]

Bases: cement.core.interface.Interface

This class defines the Plugin Interface. Handlers that implement this interface must provide the methods and attributes defined below. In general, most implementations should sub-class from the provided PluginHandler base class as a starting point.

get_disabled_plugins()[source]

Returns a list of plugins that are disabled in the config.

get_enabled_plugins()[source]

Returns a list of plugins that are enabled in the config.

get_loaded_plugins()[source]

Returns a list of plugins that have been loaded.

load_plugin()[source]

Load a plugin whose name is plugin_name.

Parameters:plugin_name (str) – The name of the plugin to load.
load_plugins(plugins)[source]

Load all plugins from plugins.

Parameters:plugins (list) – A list of plugin names to load.