msl.equipment package

Manage and connect to equipment in the laboratory.

msl.equipment.version_info = version_info(major=0, minor=1, micro=0, releaselevel='final')

Contains the version information as a (major, minor, micro, releaselevel) tuple.

Type:

namedtuple

msl.equipment.list_resources(hosts=None, timeout=2)[source]

Returns a dictionary of all equipment that are available to connect to.

Parameters:
  • hosts (list of str, optional) – The IP address(es) on the computer to use to find network devices. If not specified, then find devices on all network interfaces.

  • timeout (float, optional) – The maximum number of seconds to wait for a reply from a network device.

Returns:

dict – The information about the devices that were found.

msl.equipment.print_resources(**kwargs)[source]

Print a summary of all equipment that are available to connect to.

Parameters:

kwargs – All keyword arguments are passed to list_resources().