slackbuilds_ponce/python/pluginbase
Heinz Wiesinger 63daf9f79a All: Support $PRINT_PACKAGE_NAME env var
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
2021-07-17 21:55:09 +02:00
..
pluginbase.info
pluginbase.SlackBuild All: Support $PRINT_PACKAGE_NAME env var 2021-07-17 21:55:09 +02:00
README
slack-desc

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()