labgrid.remote package

Submodules

labgrid.remote.authenticator module

labgrid.remote.client module

The remote.client module contains the functionality to connect to a coordinator, acquire a place and interact with the connected resources

exception labgrid.remote.client.Error[source]

Bases: Exception

__module__ = 'labgrid.remote.client'
__weakref__

list of weak references to the object (if defined)

exception labgrid.remote.client.UserError[source]

Bases: labgrid.remote.client.Error

__module__ = 'labgrid.remote.client'
exception labgrid.remote.client.ServerError[source]

Bases: labgrid.remote.client.Error

__module__ = 'labgrid.remote.client'
labgrid.remote.client.start_session(url, realm, extra)[source]
labgrid.remote.client.find_role_by_place(config, place)[source]
labgrid.remote.client.find_any_role_with_place(config)[source]
labgrid.remote.client.main()[source]

labgrid.remote.common module

class labgrid.remote.common.ResourceEntry(data, acquired=None) → None[source]

Bases: object

__attrs_post_init__()[source]
avail
cls
params
args

arguments for resource construction

extra

extra resource information

asdict()[source]
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__dict__ = mappingproxy({'extra': <property object>, 'asdict': <function ResourceEntry.asdict>, 'params': <property object>, '__dict__': <attribute '__dict__' of 'ResourceEntry' objects>, '__repr__': <function ResourceEntry.__repr__>, 'avail': <property object>, '__init__': <function ResourceEntry.__init__>, 'args': <property object>, '__attrs_post_init__': <function ResourceEntry.__attrs_post_init__>, '__weakref__': <attribute '__weakref__' of 'ResourceEntry' objects>, '__module__': 'labgrid.remote.common', '__attrs_attrs__': (Attribute(name='data', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False)), 'cls': <property object>, '__doc__': None})
__init__(data, acquired=None) → None
__module__ = 'labgrid.remote.common'
__repr__()

Automatically created by attrs.

__weakref__

list of weak references to the object (if defined)

class labgrid.remote.common.ResourceMatch(exporter, group, cls, name=None, rename=None) → None[source]

Bases: object

classmethod fromstr(pattern)[source]
__repr__()[source]
__str__()[source]
ismatch(resource_path)[source]

Return True if this matches the given resource

__attrs_attrs__ = (Attribute(name='exporter', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='group', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='cls', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='name', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='rename', default=None, validator=None, repr=True, cmp=False, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__dict__ = mappingproxy({'__ne__': <function ResourceMatch.__ne__>, '__repr__': <function ResourceMatch.__repr__>, '__gt__': <function ResourceMatch.__gt__>, '__dict__': <attribute '__dict__' of 'ResourceMatch' objects>, '__ge__': <function ResourceMatch.__ge__>, '__hash__': None, '__weakref__': <attribute '__weakref__' of 'ResourceMatch' objects>, '__str__': <function ResourceMatch.__str__>, '__lt__': <function ResourceMatch.__lt__>, 'fromstr': <classmethod object>, '__doc__': None, '__le__': <function ResourceMatch.__le__>, 'ismatch': <function ResourceMatch.ismatch>, '__init__': <function ResourceMatch.__init__>, '__module__': 'labgrid.remote.common', '__attrs_attrs__': (Attribute(name='exporter', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='group', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='cls', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='name', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='rename', default=None, validator=None, repr=True, cmp=False, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False)), '__eq__': <function ResourceMatch.__eq__>})
__eq__(other)
__ge__(other)

Automatically created by attrs.

__gt__(other)

Automatically created by attrs.

__hash__ = None
__init__(exporter, group, cls, name=None, rename=None) → None
__le__(other)

Automatically created by attrs.

__lt__(other)

Automatically created by attrs.

__module__ = 'labgrid.remote.common'
__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.

__weakref__

list of weak references to the object (if defined)

class labgrid.remote.common.Place(name, aliases=NOTHING, comment='', matches=NOTHING, acquired=None, acquired_resources=NOTHING, allowed=NOTHING, created=NOTHING, changed=NOTHING) → None[source]

Bases: object

asdict()[source]
show(level=0)[source]
getmatch(resource_path)[source]

Return the ResourceMatch object for the given resource path or None if not found.

A resource_path has the structure (exporter, group, cls, name).

hasmatch(resource_path)[source]

Return True if this place as a ResourceMatch object for the given resource path.

A resource_path has the structure (exporter, group, cls, name).

touch()[source]
__attrs_attrs__ = (Attribute(name='name', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='aliases', default=Factory(factory=<class 'set'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=<class 'set'>, kw_only=False), Attribute(name='comment', default='', validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='matches', default=Factory(factory=<class 'list'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired_resources', default=Factory(factory=<class 'list'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='allowed', default=Factory(factory=<class 'set'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=<class 'set'>, kw_only=False), Attribute(name='created', default=Factory(factory=<built-in function time>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='changed', default=Factory(factory=<built-in function time>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__dict__ = mappingproxy({'__repr__': <function Place.__repr__>, 'asdict': <function Place.asdict>, '__dict__': <attribute '__dict__' of 'Place' objects>, '__module__': 'labgrid.remote.common', 'getmatch': <function Place.getmatch>, '__weakref__': <attribute '__weakref__' of 'Place' objects>, 'show': <function Place.show>, 'hasmatch': <function Place.hasmatch>, '__doc__': None, '__init__': <function Place.__init__>, 'touch': <function Place.touch>, '__attrs_attrs__': (Attribute(name='name', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='aliases', default=Factory(factory=<class 'set'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=<class 'set'>, kw_only=False), Attribute(name='comment', default='', validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='matches', default=Factory(factory=<class 'list'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired_resources', default=Factory(factory=<class 'list'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='allowed', default=Factory(factory=<class 'set'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=<class 'set'>, kw_only=False), Attribute(name='created', default=Factory(factory=<built-in function time>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='changed', default=Factory(factory=<built-in function time>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))})
__init__(name, aliases=NOTHING, comment='', matches=NOTHING, acquired=None, acquired_resources=NOTHING, allowed=NOTHING, created=NOTHING, changed=NOTHING) → None
__module__ = 'labgrid.remote.common'
__repr__()

Automatically created by attrs.

__weakref__

list of weak references to the object (if defined)

labgrid.remote.common.enable_tcp_nodelay(session)[source]

asyncio/autobahn does not set TCP_NODELAY by default, so we need to do it like this for now.

labgrid.remote.config module

class labgrid.remote.config.ResourceConfig(filename) → None[source]

Bases: object

__attrs_post_init__()[source]
__attrs_attrs__ = (Attribute(name='filename', default=NOTHING, validator=<instance_of validator for type <class 'str'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False),)
__dict__ = mappingproxy({'__dict__': <attribute '__dict__' of 'ResourceConfig' objects>, '__repr__': <function ResourceConfig.__repr__>, '__init__': <function ResourceConfig.__init__>, '__attrs_post_init__': <function ResourceConfig.__attrs_post_init__>, '__weakref__': <attribute '__weakref__' of 'ResourceConfig' objects>, '__module__': 'labgrid.remote.config', '__attrs_attrs__': (Attribute(name='filename', default=NOTHING, validator=<instance_of validator for type <class 'str'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False),), '__doc__': None})
__init__(filename) → None
__module__ = 'labgrid.remote.config'
__repr__()

Automatically created by attrs.

__weakref__

list of weak references to the object (if defined)

labgrid.remote.coordinator module

The coordinator module coordinates exported resources and clients accessing them.

class labgrid.remote.coordinator.Action[source]

Bases: enum.Enum

An enumeration.

ADD = 0
DEL = 1
UPD = 2
__module__ = 'labgrid.remote.coordinator'
__new__(value)
class labgrid.remote.coordinator.RemoteSession[source]

Bases: object

class encapsulating a session, used by ExporterSession and ClientSession

key

Key of the session

name

Name of the session

__attrs_attrs__ = (Attribute(name='coordinator', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='session', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='authid', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='version', default='unknown', validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__dict__ = mappingproxy({'__repr__': <function RemoteSession.__repr__>, '__doc__': 'class encapsulating a session, used by ExporterSession and ClientSession', '__dict__': <attribute '__dict__' of 'RemoteSession' objects>, 'key': <property object>, '__weakref__': <attribute '__weakref__' of 'RemoteSession' objects>, '__module__': 'labgrid.remote.coordinator', '__attrs_attrs__': (Attribute(name='coordinator', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='session', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='authid', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='version', default='unknown', validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False)), 'name': <property object>})
__module__ = 'labgrid.remote.coordinator'
__repr__()

Automatically created by attrs.

__weakref__

list of weak references to the object (if defined)

class labgrid.remote.coordinator.ExporterSession(coordinator, session, authid) → None[source]

Bases: labgrid.remote.coordinator.RemoteSession

An ExporterSession is opened for each Exporter connecting to the coordinator, allowing the Exporter to get and set resources

set_resource(groupname, resourcename, resource)[source]
get_resources()[source]

Method invoked by the exporter, get a resource from the coordinator

__attrs_attrs__ = (Attribute(name='coordinator', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='session', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='authid', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='version', default='unknown', validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='groups', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__init__(coordinator, session, authid) → None
__module__ = 'labgrid.remote.coordinator'
__repr__()

Automatically created by attrs.

class labgrid.remote.coordinator.ClientSession(coordinator, session, authid) → None[source]

Bases: labgrid.remote.coordinator.RemoteSession

__attrs_attrs__ = (Attribute(name='coordinator', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='session', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='authid', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='version', default='unknown', validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=Factory(factory=<class 'list'>, takes_self=False), validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__init__(coordinator, session, authid) → None
__module__ = 'labgrid.remote.coordinator'
__repr__()

Automatically created by attrs.

labgrid.remote.exporter module

The remote.exporter module exports resources to the coordinator and makes them available to other clients on the same coordinator

class labgrid.remote.exporter.ResourceExport(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None[source]

Bases: labgrid.remote.common.ResourceEntry

Represents a local resource exported via a specific protocol.

The ResourceEntry attributes contain the information for the client.

__attrs_post_init__()[source]
start()[source]
stop()[source]
need_restart()[source]

Check if the previously used start parameters have changed so that a restart is needed.

poll()[source]
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='host', default='build-8357137-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy_required', default=False, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__init__(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None
__module__ = 'labgrid.remote.exporter'
__repr__()

Automatically created by attrs.

class labgrid.remote.exporter.USBSerialPortExport(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None[source]

Bases: labgrid.remote.exporter.ResourceExport

ResourceExport for a USB SerialPort

__attrs_post_init__()[source]
__del__()[source]
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='host', default='build-8357137-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy_required', default=False, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__init__(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None
__module__ = 'labgrid.remote.exporter'
__repr__()

Automatically created by attrs.

class labgrid.remote.exporter.USBEthernetExport(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None[source]

Bases: labgrid.remote.exporter.ResourceExport

ResourceExport for a USB ethernet interface

__attrs_post_init__()[source]
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='host', default='build-8357137-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy_required', default=False, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__init__(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None
__module__ = 'labgrid.remote.exporter'
__repr__()

Automatically created by attrs.

class labgrid.remote.exporter.USBGenericExport(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None[source]

Bases: labgrid.remote.exporter.ResourceExport

ResourceExport for USB devices accessed directly from userspace

__attrs_post_init__()[source]
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='host', default='build-8357137-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy_required', default=False, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__init__(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None
__module__ = 'labgrid.remote.exporter'
__repr__()

Automatically created by attrs.

class labgrid.remote.exporter.USBSigrokExport(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None[source]

Bases: labgrid.remote.exporter.USBGenericExport

ResourceExport for USB devices accessed directly from userspace

__attrs_post_init__()[source]
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='host', default='build-8357137-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy_required', default=False, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__init__(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None
__module__ = 'labgrid.remote.exporter'
__repr__()

Automatically created by attrs.

class labgrid.remote.exporter.USBSDMuxExport(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None[source]

Bases: labgrid.remote.exporter.USBGenericExport

ResourceExport for USB devices accessed directly from userspace

__attrs_post_init__()[source]
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='host', default='build-8357137-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy_required', default=False, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__init__(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None
__module__ = 'labgrid.remote.exporter'
__repr__()

Automatically created by attrs.

class labgrid.remote.exporter.USBPowerPortExport(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None[source]

Bases: labgrid.remote.exporter.USBGenericExport

ResourceExport for ports on switchable USB hubs

__attrs_post_init__()[source]
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='host', default='build-8357137-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy_required', default=False, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__init__(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None
__module__ = 'labgrid.remote.exporter'
__repr__()

Automatically created by attrs.

class labgrid.remote.exporter.EthernetPortExport(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None[source]

Bases: labgrid.remote.exporter.ResourceExport

ResourceExport for a ethernet interface

__attrs_post_init__()[source]
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='acquired', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='host', default='build-8357137-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='proxy_required', default=False, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False))
__eq__(other)
__ge__(other)

Automatically created by attrs.

__gt__(other)

Automatically created by attrs.

__hash__ = None
__init__(data, acquired=None, host='build-8357137-project-82349-labgrid', proxy=None, proxy_required=False) → None
__le__(other)

Automatically created by attrs.

__lt__(other)

Automatically created by attrs.

__module__ = 'labgrid.remote.exporter'
__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

labgrid.remote.exporter.main()[source]