Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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

Project description

# PluginBase

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

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

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

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

Or alternatively:
```python
my_plugin = plugin_source.load_plugin('my_plugin')
my_plugin.do_something_cool()
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pluginbase-0.7.tar.gz (40.2 kB) Copy SHA256 hash SHA256 Source None May 24, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page