coherence.extern.simple_plugin (module)

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