Base Plugins

class qtpyvcp.plugins.base_plugins.Plugin[source]

QtPyVCP Plugin base class.

initialise()[source]

Initialize the plugin.

This method is called after the main event loop has started. Any timers or threads used by the plugin should be started here.

This method should set self._initialized to true if successfully.

terminate()[source]

Terminate the plugin.

This is called right before the main event loop exits. Any cleanup of the plugin should be done here, such as saving persistent data.

class qtpyvcp.plugins.base_plugins.DataPlugin[source]

DataPlugin.

getChannel(url)[source]

Get data channel from URL.

Parameters:url (str) – The URL of the channel to get.
Returns:(chan_obj, chan_exp)
Return type:tuple
setLogLevel(level)[source]

Set plugin log level.

Parameters:level (str, int) – Log level (DEBUG | INFO | ERROR | CRITICAL)
class qtpyvcp.plugins.base_plugins.DataChannel(fget=None, fset=None, fstr=None, data=None, settable=False, doc=None)[source]
getValue(*args, **kwargs)[source]

Channel data getter method.

getString(*args, **kwargs)[source]

Channel data getter method.

setValue(value)[source]

Channel data setter method.