The surf.plugin Module

The surf.plugin.Plugin Base Class

class surf.plugin.Plugin(*args, **kwargs)[source]

Bases: surf.util.LogMixin

Super class for all SuRF plugins, provides basic instantiation and logging.

close()[source]

Close the plugin and free any resources it may hold.

enable_logging(enable=True)[source]

Enables or disable logging for the current plugin.

inference

Toggle logical inference on / off. The property has any effect only if such functionality is supported by the underlying data store.

is_enable_logging()[source]

True if logging is enabled.