Skip to content

bnl-sdcc/sdcc-pluginmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Plugin Manager

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)

Deployment

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published