How to use the pluginbase.Plugin.__subclasses__ function in pluginbase

To help you get started, we’ve selected a few pluginbase examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github spillz / picty / modules / picty / pluginmanager.py View on Github external
def instantiate_all_plugins(self):
        ##todo: check for plugin.name conflicts with existing plugins and reject plugin if already present
        print 'instantiating plugins except for',settings.plugins_disabled
        for plugin in pluginbase.Plugin.__subclasses__():
#            try:
                self.plugins[plugin.name]=[plugin(),plugin] if plugin.name not in settings.plugins_disabled else [None,plugin]
#            except:

pluginbase

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

BSD-2-Clause
Latest version published 4 years ago

Package Health Score

61 / 100
Full package analysis