slackbuilds/python/pluginbase
Andre Barboza f5b7f2bc8d python/pluginbase: New homepage.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2017-04-13 07:27:50 +07:00
..
README python/pluginbase: Added (Python development plugin module). 2017-04-08 06:57:46 +07:00
pluginbase.SlackBuild python/pluginbase: Added (Python development plugin module). 2017-04-08 06:57:46 +07:00
pluginbase.info python/pluginbase: New homepage. 2017-04-13 07:27:50 +07:00
slack-desc python/pluginbase: New homepage. 2017-04-13 07:27:50 +07:00

README

PluginBase is a module for Python that enables the development of
flexible plugin systems in Python.

Step 1:
  from pluginbase import PluginBase
  plugin_base = PluginBase(package='yourapplication.plugins')

Step 2:
  plugin_source = plugin_base.make_plugin_source(
  searchpath=['./path/to/plugins', './path/to/more/plugins'])

Step 3:
  with plugin_source:
    from yourapplication.plugins import my_plugin
  my_plugin.do_something_cool()