bec_lib.dap_plugin_objects.DAPPluginObject#

class DAPPluginObject(service_name: str, plugin_info: dict, client: BECClient = None, auto_run_supported: bool = False, service_info: dict = None)[source]#

Bases: DAPPluginObjectBase

Default DAP plugin object. This class should be used for plugins that do not support auto run. To customize a plugin, create a new class that inherits from this class and override the methods as needed.

Parameters:
  • service_name (str) – The name of the service.

  • plugin_info (dict) – Information about the plugin.

  • client (BECClient, optional) – The BEC client. Defaults to None.

  • auto_run_supported (bool, optional) – Whether the plugin supports auto run. Defaults to False.

  • service_info (dict, optional) – Information about the service. Defaults to None.

  • result_cls (type, optional) – The class to use for the result of the plugin. Defaults to None.

Methods

get_data

Get the data from last run.

get_data()[source]#

Get the data from last run.