Module to simplify plugin instantiation and configuration. Handles plugin dispatch, config. Model is plugins are kept in hierarchy by 'category', beneath category are types:
<package>/plugins/<category>/[<type>/<subtype>]/<name>.py
Example: To get an instance of a plugin class "myplugin" in module package/plugins/typeA/kindB/myplugin.py that expects and integer as input to the init() method:
from pluginmanager import getplugin
pluginobj = getplugin(['package', 'plugins', 'typeA', 'kindB'], 'myplugin', 3)
As root:
$ git clone https://github.com/bnl-sdcc/sdcc-pluginmanager.git
$ cd sdcc-pluginmanager
$ python setup.py bdist_rpm
$ rpm -Uhv dist/pluginmanager-<version>.noarch.rpm
As user:
$ git clone https://github.com/bnl-sdcc/sdcc-pluginmanager.git
$ cd sdcc-pluginmanager
$ python setup.py install --home=$HOME
$ export PYTHONPATH=$HOME/lib/python:$PYTHONPATH