summaryrefslogtreecommitdiffstats
path: root/python/pluginbase/README
diff options
context:
space:
mode:
author Andre Barboza <bmg.andre@gmail.com>2017-04-04 17:20:50 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-08 06:57:46 +0700
commita5507f5b78c3a26309ca865f272b578414a44805 (patch)
tree95ca6281fdbc25483ee8e2abfdc6a665ddf0bcdc /python/pluginbase/README
parent8121d70b22d4db4557ac2acda1911f1d4788d66d (diff)
downloadslackbuilds-a5507f5b78c3a26309ca865f272b578414a44805.tar.gz
slackbuilds-a5507f5b78c3a26309ca865f272b578414a44805.tar.xz
python/pluginbase: Added (Python development plugin module).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'python/pluginbase/README')
-rw-r--r--python/pluginbase/README15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/pluginbase/README b/python/pluginbase/README
new file mode 100644
index 0000000000..0197dd88e4
--- /dev/null
+++ b/python/pluginbase/README
@@ -0,0 +1,15 @@
+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()