coherence.extern.simple_plugin (module)

Simple Plugin

Real simple plugin system meant as a replacement when setuptools/pkg_resources are not available.

class Plugin[source]

Bases: object

a new style class that betrays all its sub-classes

class Reception(plugin_path=None, log=None)[source]

Bases: object

Singleton class which holds information about known plugins.

Currently a singleton, and even a class, seems to be overkill for this, but maybe we’ll add some more functionality later.

Initializes the class and checks in if a path is provided.

_instance_ = None
__init__(plugin_path=None, log=None)[source]

Initializes the class and checks in if a path is provided.

checkin(plugin_path)[source]

Import all valid files from plugin_path.

guestlist(plugin_class=<class 'coherence.extern.simple_plugin.Plugin'>)[source]

Returns a list of all Plugin subclasses.