paws.core.plugins package¶
Submodules¶
paws.core.plugins.CitrinationPlugin module¶
paws.core.plugins.PawsPlugin module¶
-
class
paws.core.plugins.PawsPlugin.PawsPlugin(inputs)[source]¶ Bases:
objectBase class for building PAWS Plugins.
-
content()[source]¶ Return a dict containing meaningful plugin content.
This method is used to fetch Plugin content. It should be reimplemented for most practical PawsPlugin subclasses.
-
description()[source]¶ Describe the plugin.
PawsPlugin.description() returns a string documenting the functionality of the PawsPlugin, the current input settings, etc. Reimplement this in PawsPlugin subclasses.
-
paws.core.plugins.PluginManager module¶
-
class
paws.core.plugins.PluginManager.PluginManager[source]¶ Bases:
paws.core.models.TreeModel.TreeModelTree for storing, browsing, and managing PawsPlugins
-
add_plugin(plugin_name, plugin_module)[source]¶ Import, name, and add a plugin.
After a plugin is added to a plugin_manager, it is available as plugin_manager.plugins[plugin_name].
Parameters:
-
build_tree(x)[source]¶ Return a dict describing a tree-like structure of this object.
This is a reimplemention of TreeModel.build_tree() to define this object’s child tree structure. For a PluginManager, a dict is provided for each PawsPlugin, where the dict contains the results of calling self.build_tree(plugin.inputs) and self.build_tree(plugin.content()).
-
get_plugin(plugin_module)[source]¶ Import, instantiate, return a PawsPlugin from its module.
This can also be used to test the Python environment for compatibility with a plugin.
Parameters: plugin_module (str) – Name of the plugin module. See add_plugin(). Returns: An instance of the PawsPlugin subclass defined in plugin_module. Return type: PawsPlugin
-
load_plugin(plugin_name, plugin_setup_dict)[source]¶ Load, set up, and start() a PawsPlugin, given its setup_dict().
Parameters:
-