The surf.plugin.manager Module

surf.plugin.manager.add_plugin_path(plugin_path)[source]

Loads plugins from path. Method can be called multiple times, with different locations. (Plugins are loaded only once).

Parameters:plugin_path (str) – register plugin search path
surf.plugin.manager.load_plugins(reload=False)[source]

Call this method to load the plugins into the manager. The method is called by default when a surf.store.Store is instantiated. To cause a reload, call the method with reload set to True

Parameters:
  • reload (bool) – reload plugins if True
  • logger – the logger
surf.plugin.manager.register(name, reader, writer)[source]

register reader and writer plugins :param str name: the plugin name :param reader: the reader plugin :param writer: the writer plugin

surf.plugin.manager.registered_readers()[source]

gets the registered reader plugins. Plugins are instances of :cls:`surf.plugin.reader.RDFReader`.

Returns:the registered reader plugins
Return type:list or set
surf.plugin.manager.registered_writers()[source]

gets the registered writer plugins. Plugins are instances of :cls:`surf.plugin.reader.RDFWriter`.

Returns:the registered writer plugins
Return type:list or set