labgrid.remote package

Submodules

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: Error

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

Bases: Error

__annotations__ = {}
__module__ = 'labgrid.remote.client'
exception labgrid.remote.client.InteractiveCommandError[source]

Bases: Error

__annotations__ = {}
__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]
class labgrid.remote.client.LocalPort(option_strings, dest, nargs=None, **kwargs)[source]

Bases: Action

__init__(option_strings, dest, nargs=None, **kwargs)[source]
__call__(parser, namespace, value, option_string)[source]

Call self as a function.

__module__ = 'labgrid.remote.client'
class labgrid.remote.client.RemotePort(option_strings, dest, nargs=None, **kwargs)[source]

Bases: Action

__init__(option_strings, dest, nargs=None, **kwargs)[source]
__call__(parser, namespace, value, option_string)[source]

Call self as a function.

__annotations__ = {}
__module__ = 'labgrid.remote.client'
class labgrid.remote.client.ExportFormat(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

SHELL = 'shell'
SHELL_EXPORT = 'shell-export'
JSON = 'json'
__str__()[source]

Return str(self).

__module__ = 'labgrid.remote.client'
labgrid.remote.client.main()[source]

labgrid.remote.common module

class labgrid.remote.common.ResourceEntry(data)[source]

Bases: object

__attrs_post_init__()[source]
property acquired
property avail
property cls
property params
property args

arguments for resource construction

property extra

extra resource information

asdict()[source]
update(data)[source]

apply updated information from the exporter on the coordinator

acquire(place_name)[source]
release()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='data'),)
__dict__ = mappingproxy({'__module__': 'labgrid.remote.common', '__attrs_post_init__': <function ResourceEntry.__attrs_post_init__>, 'acquired': <property object>, 'avail': <property object>, 'cls': <property object>, 'params': <property object>, 'args': <property object>, 'extra': <property object>, 'asdict': <function ResourceEntry.asdict>, 'update': <function ResourceEntry.update>, 'acquire': <function ResourceEntry.acquire>, 'release': <function ResourceEntry.release>, '__dict__': <attribute '__dict__' of 'ResourceEntry' objects>, '__weakref__': <attribute '__weakref__' of 'ResourceEntry' objects>, '__doc__': None, '__annotations__': {}, '__attrs_attrs__': (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='data'),), '__repr__': <function ResourceEntry.__repr__>, '__init__': <function ResourceEntry.__init__>, '__match_args__': ('data',)})
__init__(data) None

Method generated by attrs for class ResourceEntry.

__match_args__ = ('data',)
__module__ = 'labgrid.remote.common'
__repr__()

Method generated by attrs for class ResourceEntry.

__weakref__

list of weak references to the object (if defined)

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

Bases: object

classmethod fromstr(pattern)[source]
__repr__()[source]

Return repr(self).

__str__()[source]

Return str(self).

ismatch(resource_path)[source]

Return True if this matches the given resource

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

Method generated by attrs for class ResourceMatch.

__ge__(other)

Method generated by attrs for class ResourceMatch.

__gt__(other)

Method generated by attrs for class ResourceMatch.

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

Method generated by attrs for class ResourceMatch.

__le__(other)

Method generated by attrs for class ResourceMatch.

__lt__(other)

Method generated by attrs for class ResourceMatch.

__match_args__ = ('exporter', 'group', 'cls', 'name', 'rename')
__module__ = 'labgrid.remote.common'
__ne__(other)

Method generated by attrs for class ResourceMatch.

__weakref__

list of weak references to the object (if defined)

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

Bases: object

asdict()[source]
update(config)[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).

unmatched(resource_paths)[source]

Returns a match which could not be matched to the list of resource_path

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

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

Method generated by attrs for class Place.

__match_args__ = ('name', 'aliases', 'comment', 'tags', 'matches', 'acquired', 'acquired_resources', 'allowed', 'created', 'changed', 'reservation')
__module__ = 'labgrid.remote.common'
__repr__()

Method generated by attrs for class Place.

__weakref__

list of weak references to the object (if defined)

class labgrid.remote.common.ReservationState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

waiting = 0
allocated = 1
acquired = 2
expired = 3
invalid = 4
__module__ = 'labgrid.remote.common'
class labgrid.remote.common.Reservation(owner, token=NOTHING, state='waiting', prio=0.0, filters=NOTHING, allocations=NOTHING, created=NOTHING, timeout=NOTHING)[source]

Bases: object

asdict()[source]
refresh(delta=60)[source]
property expired
show(level=0)[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='owner', default=NOTHING, validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='owner'), Attribute(name='token', default=Factory(factory=<function Reservation.<lambda>>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='token'), Attribute(name='state', default='waiting', validator=<instance_of validator for type <enum 'ReservationState'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=<function Reservation.<lambda>>, kw_only=False, inherited=False, on_setattr=None, alias='state'), Attribute(name='prio', default=0.0, validator=<instance_of validator for type <class 'float'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='prio'), Attribute(name='filters', default=Factory(factory=<class 'dict'>, takes_self=False), validator=<instance_of validator for type <class 'dict'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='filters'), Attribute(name='allocations', default=Factory(factory=<class 'dict'>, takes_self=False), validator=<instance_of validator for type <class 'dict'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='allocations'), Attribute(name='created', default=Factory(factory=<built-in function time>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='created'), Attribute(name='timeout', default=Factory(factory=<function Reservation.<lambda>>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='timeout'))
__dict__ = mappingproxy({'__module__': 'labgrid.remote.common', 'asdict': <function Reservation.asdict>, 'refresh': <function Reservation.refresh>, 'expired': <property object>, 'show': <function Reservation.show>, '__dict__': <attribute '__dict__' of 'Reservation' objects>, '__weakref__': <attribute '__weakref__' of 'Reservation' objects>, '__doc__': None, '__annotations__': {}, '__attrs_attrs__': (Attribute(name='owner', default=NOTHING, validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='owner'), Attribute(name='token', default=Factory(factory=<function Reservation.<lambda>>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='token'), Attribute(name='state', default='waiting', validator=<instance_of validator for type <enum 'ReservationState'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=<function Reservation.<lambda>>, kw_only=False, inherited=False, on_setattr=None, alias='state'), Attribute(name='prio', default=0.0, validator=<instance_of validator for type <class 'float'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='prio'), Attribute(name='filters', default=Factory(factory=<class 'dict'>, takes_self=False), validator=<instance_of validator for type <class 'dict'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='filters'), Attribute(name='allocations', default=Factory(factory=<class 'dict'>, takes_self=False), validator=<instance_of validator for type <class 'dict'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='allocations'), Attribute(name='created', default=Factory(factory=<built-in function time>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='created'), Attribute(name='timeout', default=Factory(factory=<function Reservation.<lambda>>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='timeout')), '__repr__': <function Reservation.__repr__>, '__init__': <function Reservation.__init__>, '__match_args__': ('owner', 'token', 'state', 'prio', 'filters', 'allocations', 'created', 'timeout')})
__init__(owner, token=NOTHING, state='waiting', prio=0.0, filters=NOTHING, allocations=NOTHING, created=NOTHING, timeout=NOTHING) None

Method generated by attrs for class Reservation.

__match_args__ = ('owner', 'token', 'state', 'prio', 'filters', 'allocations', 'created', 'timeout')
__module__ = 'labgrid.remote.common'
__repr__()

Method generated by attrs for class Reservation.

__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.common.monkey_patch_max_msg_payload_size_ws_option()[source]

The default maxMessagePayloadSize in autobahn is 1M. For larger setups with a big number of exported resources, this becomes the limiting factor. Increase maxMessagePayloadSize in WampWebSocketClientFactory.setProtocolOptions() by monkey patching it, so autobahn.asyncio.wamp.ApplicationRunner effectively sets the increased value.

This function must be called before ApplicationRunner is instanciated.

labgrid.remote.config module

class labgrid.remote.config.ResourceConfig(filename, template_env=NOTHING)[source]

Bases: object

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='filename', default=NOTHING, validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='filename'), Attribute(name='template_env', default=Factory(factory=<class 'dict'>, takes_self=False), validator=<instance_of validator for type <class 'dict'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='template_env'))
__dict__ = mappingproxy({'__module__': 'labgrid.remote.config', '__attrs_post_init__': <function ResourceConfig.__attrs_post_init__>, '__dict__': <attribute '__dict__' of 'ResourceConfig' objects>, '__weakref__': <attribute '__weakref__' of 'ResourceConfig' objects>, '__doc__': None, '__annotations__': {}, '__attrs_attrs__': (Attribute(name='filename', default=NOTHING, validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='filename'), Attribute(name='template_env', default=Factory(factory=<class 'dict'>, takes_self=False), validator=<instance_of validator for type <class 'dict'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='template_env')), '__repr__': <function ResourceConfig.__repr__>, '__init__': <function ResourceConfig.__init__>, '__match_args__': ('filename', 'template_env')})
__init__(filename, template_env=NOTHING) None

Method generated by attrs for class ResourceConfig.

__match_args__ = ('filename', 'template_env')
__module__ = 'labgrid.remote.config'
__repr__()

Method generated by attrs for class ResourceConfig.

__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(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

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

Bases: object

class encapsulating a session, used by ExporterSession and ClientSession

property key

Key of the session

property name

Name of the session

__annotations__ = {}
__attrs_attrs__ = (Attribute(name='coordinator', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='coordinator'), Attribute(name='session', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='session'), Attribute(name='authid', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='authid'), Attribute(name='version', default='unknown', validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='version'))
__attrs_init__(coordinator, session, authid) None

Method generated by attrs for class RemoteSession.

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

Method generated by attrs for class RemoteSession.

__weakref__

list of weak references to the object (if defined)

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

Bases: RemoteSession

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

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

Method invoked by the client, get the resources from the coordinator

__annotations__ = {}
__attrs_attrs__ = (Attribute(name='coordinator', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='coordinator'), Attribute(name='session', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='session'), Attribute(name='authid', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='authid'), Attribute(name='version', default='unknown', validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='version'), Attribute(name='groups', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='groups'))
__init__(coordinator, session, authid) None

Method generated by attrs for class ExporterSession.

__match_args__ = ('coordinator', 'session', 'authid')
__module__ = 'labgrid.remote.coordinator'
__repr__()

Method generated by attrs for class ExporterSession.

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

Bases: RemoteSession

__annotations__ = {}
__attrs_attrs__ = (Attribute(name='coordinator', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='coordinator'), Attribute(name='session', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='session'), Attribute(name='authid', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='authid'), Attribute(name='version', default='unknown', validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='version'))
__init__(coordinator, session, authid) None

Method generated by attrs for class ClientSession.

__match_args__ = ('coordinator', 'session', 'authid')
__module__ = 'labgrid.remote.coordinator'
__repr__()

Method generated by attrs for class ClientSession.

class labgrid.remote.coordinator.ResourceImport(data, *, path)[source]

Bases: ResourceEntry

Represents a local resource exported from an exporter.

The ResourceEntry attributes contain the information for the client.

__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='path', default=NOTHING, validator=<instance_of validator for type <class 'tuple'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=True, inherited=False, on_setattr=None, alias='path'))
__init__(data, *, path) None

Method generated by attrs for class ResourceImport.

__match_args__ = ('data',)
__module__ = 'labgrid.remote.coordinator'
__repr__()

Method generated by attrs for class ResourceImport.

labgrid.remote.coordinator.locked(func)[source]

labgrid.remote.exporter module

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

exception labgrid.remote.exporter.ExporterError[source]

Bases: Exception

__module__ = 'labgrid.remote.exporter'
__weakref__

list of weak references to the object (if defined)

exception labgrid.remote.exporter.BrokenResourceError[source]

Bases: ExporterError

__annotations__ = {}
__module__ = 'labgrid.remote.exporter'
labgrid.remote.exporter.log_subprocess_kernel_stack(logger, child)[source]
class labgrid.remote.exporter.ResourceExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: ResourceEntry

Represents a local resource exported via a specific protocol.

The ResourceEntry attributes contain the information for the client.

__attrs_post_init__()[source]
property broken
start()[source]
stop()[source]
poll()[source]
acquire(*args, **kwargs)[source]
release(*args, **kwargs)[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class ResourceExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class ResourceExport.

class labgrid.remote.exporter.SerialPortExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: ResourceExport

ResourceExport for a USB or Raw SerialPort

__attrs_post_init__()[source]
__del__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class SerialPortExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class SerialPortExport.

class labgrid.remote.exporter.NetworkInterfaceExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: ResourceExport

ResourceExport for a network interface

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class NetworkInterfaceExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class NetworkInterfaceExport.

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

Bases: ResourceExport

ResourceExport for USB devices accessed directly from userspace

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class USBGenericExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class USBGenericExport.

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

Bases: USBGenericExport

ResourceExport for USB devices accessed directly from userspace

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class USBSigrokExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class USBSigrokExport.

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

Bases: USBGenericExport

ResourceExport for USB devices accessed directly from userspace

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class USBSDMuxExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class USBSDMuxExport.

class labgrid.remote.exporter.USBSDWireExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: USBGenericExport

ResourceExport for USB devices accessed directly from userspace

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class USBSDWireExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class USBSDWireExport.

class labgrid.remote.exporter.USBAudioInputExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: USBGenericExport

ResourceExport for ports on switchable USB hubs

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class USBAudioInputExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class USBAudioInputExport.

class labgrid.remote.exporter.SiSPMPowerPortExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: USBGenericExport

ResourceExport for ports on GEMBRID switches

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class SiSPMPowerPortExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class SiSPMPowerPortExport.

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

Bases: USBGenericExport

ResourceExport for ports on switchable USB hubs

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class USBPowerPortExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class USBPowerPortExport.

class labgrid.remote.exporter.USBDeditecRelaisExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: USBGenericExport

ResourceExport for outputs on deditec relais

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class USBDeditecRelaisExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class USBDeditecRelaisExport.

class labgrid.remote.exporter.USBHIDRelayExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: USBGenericExport

ResourceExport for outputs on simple USB HID relays

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class USBHIDRelayExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class USBHIDRelayExport.

class labgrid.remote.exporter.USBFlashableExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: USBGenericExport

ResourceExport for Flashable USB devices

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class USBFlashableExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class USBFlashableExport.

class labgrid.remote.exporter.USBGenericRemoteExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: USBGenericExport

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class USBGenericRemoteExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class USBGenericRemoteExport.

class labgrid.remote.exporter.ProviderGenericExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: ResourceExport

ResourceExport for Resources derived from BaseProvider

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class ProviderGenericExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class ProviderGenericExport.

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

Bases: ResourceExport

ResourceExport for a ethernet interface

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__eq__(other)

Method generated by attrs for class EthernetPortExport.

__ge__(other)

Method generated by attrs for class EthernetPortExport.

__gt__(other)

Method generated by attrs for class EthernetPortExport.

__hash__ = None
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class EthernetPortExport.

__le__(other)

Method generated by attrs for class EthernetPortExport.

__lt__(other)

Method generated by attrs for class EthernetPortExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__ne__(other)

Method generated by attrs for class EthernetPortExport.

__repr__()

Method generated by attrs for class EthernetPortExport.

class labgrid.remote.exporter.GPIOSysFSExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: ResourceExport

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class GPIOSysFSExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class GPIOSysFSExport.

class labgrid.remote.exporter.NetworkServiceExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: ResourceExport

ResourceExport for a NetworkService

This checks if the address has a interface suffix and then provides the neccessary proxy information.

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__eq__(other)

Method generated by attrs for class NetworkServiceExport.

__ge__(other)

Method generated by attrs for class NetworkServiceExport.

__gt__(other)

Method generated by attrs for class NetworkServiceExport.

__hash__ = None
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class NetworkServiceExport.

__le__(other)

Method generated by attrs for class NetworkServiceExport.

__lt__(other)

Method generated by attrs for class NetworkServiceExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__ne__(other)

Method generated by attrs for class NetworkServiceExport.

__repr__()

Method generated by attrs for class NetworkServiceExport.

class labgrid.remote.exporter.HTTPVideoStreamExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: ResourceExport

ResourceExport for an HTTPVideoStream

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__eq__(other)

Method generated by attrs for class HTTPVideoStreamExport.

__ge__(other)

Method generated by attrs for class HTTPVideoStreamExport.

__gt__(other)

Method generated by attrs for class HTTPVideoStreamExport.

__hash__ = None
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class HTTPVideoStreamExport.

__le__(other)

Method generated by attrs for class HTTPVideoStreamExport.

__lt__(other)

Method generated by attrs for class HTTPVideoStreamExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__ne__(other)

Method generated by attrs for class HTTPVideoStreamExport.

__repr__()

Method generated by attrs for class HTTPVideoStreamExport.

class labgrid.remote.exporter.LXAIOBusNodeExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: ResourceExport

ResourceExport for LXAIOBusNode devices accessed via the HTTP API

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class LXAIOBusNodeExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class LXAIOBusNodeExport.

class labgrid.remote.exporter.AndroidNetFastbootExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: ResourceExport

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class AndroidNetFastbootExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class AndroidNetFastbootExport.

class labgrid.remote.exporter.YKUSHPowerPortExport(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False)[source]

Bases: ResourceExport

ResourceExport for YKUSHPowerPort devices

__attrs_post_init__()[source]
__annotations__ = {}
__attrs_attrs__ = (Attribute(name='data', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='data'), Attribute(name='host', default='build-24715074-project-82349-labgrid', validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='host'), Attribute(name='proxy', default=None, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy'), Attribute(name='proxy_required', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='proxy_required'), Attribute(name='local', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local'), Attribute(name='local_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='local_params'), Attribute(name='start_params', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=True, on_setattr=None, alias='start_params'))
__init__(data, host='build-24715074-project-82349-labgrid', proxy=None, proxy_required=False) None

Method generated by attrs for class YKUSHPowerPortExport.

__match_args__ = ('data', 'host', 'proxy', 'proxy_required')
__module__ = 'labgrid.remote.exporter'
__repr__()

Method generated by attrs for class YKUSHPowerPortExport.

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

labgrid.remote.scheduler module

class labgrid.remote.scheduler.TagSet(name, tags)[source]

Bases: object

__annotations__ = {}
__attrs_attrs__ = (Attribute(name='name', default=NOTHING, validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='name'), Attribute(name='tags', default=NOTHING, validator=<instance_of validator for type <class 'set'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='tags'))
__dict__ = mappingproxy({'__module__': 'labgrid.remote.scheduler', '__dict__': <attribute '__dict__' of 'TagSet' objects>, '__weakref__': <attribute '__weakref__' of 'TagSet' objects>, '__doc__': None, '__annotations__': {}, '__attrs_attrs__': (Attribute(name='name', default=NOTHING, validator=<instance_of validator for type <class 'str'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='name'), Attribute(name='tags', default=NOTHING, validator=<instance_of validator for type <class 'set'>>, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='tags')), '__repr__': <function TagSet.__repr__>, '__init__': <function TagSet.__init__>, '__match_args__': ('name', 'tags')})
__init__(name, tags) None

Method generated by attrs for class TagSet.

__match_args__ = ('name', 'tags')
__module__ = 'labgrid.remote.scheduler'
__repr__()

Method generated by attrs for class TagSet.

__weakref__

list of weak references to the object (if defined)

labgrid.remote.scheduler.schedule_step(places, filters)[source]

Find the filters that can be directly allocated without overlap.

labgrid.remote.scheduler.schedule_overlaps(places, filters)[source]

Iterate schedule_step until no more allocations are found.

labgrid.remote.scheduler.schedule(places, filters)[source]