exopy.instruments.connections.base_connection module

Base classes to handle connection information edition.

Connection information are the information a user need to provide to open a connection to an instrument. The format of a connection does not depend on the architecture backend as any format discrepencies should be smoothed by the starter used to instantiate the driver.

class exopy.instruments.connections.base_connection.BaseConnection(parent=None, **kwargs)[source]

Bases: enaml.widgets.group_box.GroupBox

Base widget for creating a connection.

declaration

Reference to the declaration that created this object.

read_only

Whether or not to make the connection editable

gather_infos()[source]

Return the current values as a dictionary.

class exopy.instruments.connections.base_connection.Connection(parent=None, **kwargs)[source]

Bases: enaml.core.declarative.Declarative

A declarative class for contributing a connection.

Connection object can be contributed as extension children to the ‘connections’ extension point of the ‘exopy.instruments’ plugin.

id

Unique name used to identify the connection.

description

Connection description.

new(workbench, defaults, read_only)[source]

Create a new connection and instantiate it properly.

Defaults should be used to update the created connection.