Skip to content

vc3-project/pluginmanager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 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/plugin-manager.git
    $ cd plugin-manager
    $ python setup.py bdist_rpm
    $ rpm -Uhv dist/plugin-manager-<version>.noarch.rpm

**As user:**

    $ git clone https://github.com/bnl-sdcc/plugin-manager.git
    $ cd plugin-manager
    $ 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

Languages

  • Python 98.7%
  • Shell 1.3%