add_plugin

imagepypelines.add_plugin(plugin_name, plugin_module, add_to_namespace=True)[source]

adds the given plugin to ImagePypelines

Parameters
  • plugin_name (str) – the name of the desired plugin namespace

  • plugin_module (module) – the valid module object for the plugin

  • add_to_namespace (bool) – whether or not to add the plugin to the ImagePypelines namespace so it’s available as ip.plugin_name. If False, then you will only be access your plugin namespace using ip.get_plugin_by_name. Defaults to True.

Returns

None