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.


Reference to the declaration that created this object.


Whether or not to make the connection editable


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.


Unique name used to identify the connection.


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.