labgrid.protocol package
Submodules
labgrid.protocol.bootstrapprotocol module
- class labgrid.protocol.bootstrapprotocol.BootstrapProtocol[source]
Bases:
ABC
- __abstractmethods__ = frozenset({'load'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.bootstrapprotocol', 'load': <function BootstrapProtocol.load>, '__dict__': <attribute '__dict__' of 'BootstrapProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'BootstrapProtocol' objects>, '__doc__': None, '__abstractmethods__': frozenset({'load'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.bootstrapprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.commandprotocol module
- class labgrid.protocol.commandprotocol.CommandProtocol[source]
Bases:
ABC
Abstract class for the CommandProtocol
- abstract run_check(command: str)[source]
Run a command, return str if successful, ExecutionError otherwise
- __abstractmethods__ = frozenset({'get_status', 'poll_until_success', 'run', 'run_check', 'wait_for'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.commandprotocol', '__doc__': 'Abstract class for the CommandProtocol', 'run': <function CommandProtocol.run>, 'run_check': <function CommandProtocol.run_check>, 'get_status': <function CommandProtocol.get_status>, 'wait_for': <function CommandProtocol.wait_for>, 'poll_until_success': <function CommandProtocol.poll_until_success>, '__dict__': <attribute '__dict__' of 'CommandProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'CommandProtocol' objects>, '__abstractmethods__': frozenset({'run', 'run_check', 'wait_for', 'get_status', 'poll_until_success'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.commandprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.consoleprotocol module
- class labgrid.protocol.consoleprotocol.ConsoleProtocol[source]
Bases:
ABC
Abstract class for the ConsoleProtocol
- class Client[source]
Bases:
ABC
- __abstractmethods__ = frozenset({'get_console_matches', 'notify_console_match'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.consoleprotocol', 'get_console_matches': <function ConsoleProtocol.Client.get_console_matches>, 'notify_console_match': <function ConsoleProtocol.Client.notify_console_match>, '__dict__': <attribute '__dict__' of 'Client' objects>, '__weakref__': <attribute '__weakref__' of 'Client' objects>, '__doc__': None, '__abstractmethods__': frozenset({'notify_console_match', 'get_console_matches'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.consoleprotocol'
- __weakref__
list of weak references to the object (if defined)
- __abstractmethods__ = frozenset({'read', 'write'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.consoleprotocol', '__doc__': 'Abstract class for the ConsoleProtocol', 'read': <function ConsoleProtocol.read>, 'write': <function ConsoleProtocol.write>, 'sendline': <function ConsoleProtocol.sendline>, 'sendcontrol': <function ConsoleProtocol.sendcontrol>, 'expect': <function ConsoleProtocol.expect>, 'Client': <class 'labgrid.protocol.consoleprotocol.ConsoleProtocol.Client'>, '__dict__': <attribute '__dict__' of 'ConsoleProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'ConsoleProtocol' objects>, '__abstractmethods__': frozenset({'read', 'write'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.consoleprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.digitaloutputprotocol module
- class labgrid.protocol.digitaloutputprotocol.DigitalOutputProtocol[source]
Bases:
ABC
Abstract class providing the DigitalOutputProtocol interface
- __abstractmethods__ = frozenset({'get', 'set'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.digitaloutputprotocol', '__doc__': 'Abstract class providing the DigitalOutputProtocol interface', 'get': <function DigitalOutputProtocol.get>, 'set': <function DigitalOutputProtocol.set>, '__dict__': <attribute '__dict__' of 'DigitalOutputProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'DigitalOutputProtocol' objects>, '__abstractmethods__': frozenset({'get', 'set'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.digitaloutputprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.filesystemprotocol module
- class labgrid.protocol.filesystemprotocol.FileSystemProtocol[source]
Bases:
ABC
- __abstractmethods__ = frozenset({'read', 'write'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.filesystemprotocol', 'read': <function FileSystemProtocol.read>, 'write': <function FileSystemProtocol.write>, '__dict__': <attribute '__dict__' of 'FileSystemProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'FileSystemProtocol' objects>, '__doc__': None, '__abstractmethods__': frozenset({'read', 'write'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.filesystemprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.filetransferprotocol module
- class labgrid.protocol.filetransferprotocol.FileTransferProtocol[source]
Bases:
ABC
- __abstractmethods__ = frozenset({'get', 'put'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.filetransferprotocol', 'put': <function FileTransferProtocol.put>, 'get': <function FileTransferProtocol.get>, '__dict__': <attribute '__dict__' of 'FileTransferProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'FileTransferProtocol' objects>, '__doc__': None, '__abstractmethods__': frozenset({'get', 'put'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.filetransferprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.infoprotocol module
- class labgrid.protocol.infoprotocol.InfoProtocol[source]
Bases:
ABC
Abstract class providing the InfoProtocol interface
- abstract get_ip(interface: str = 'eth0')[source]
Implementations should return the IP address for the supplied interface.
- abstract get_hostname()[source]
Implementations should return the hostname for the supplied interface.
- __abstractmethods__ = frozenset({'get_hostname', 'get_ip', 'get_service_status'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.infoprotocol', '__doc__': 'Abstract class providing the InfoProtocol interface', 'get_ip': <function InfoProtocol.get_ip>, 'get_hostname': <function InfoProtocol.get_hostname>, 'get_service_status': <function InfoProtocol.get_service_status>, '__dict__': <attribute '__dict__' of 'InfoProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'InfoProtocol' objects>, '__abstractmethods__': frozenset({'get_ip', 'get_service_status', 'get_hostname'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.infoprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.linuxbootprotocol module
- class labgrid.protocol.linuxbootprotocol.LinuxBootProtocol[source]
Bases:
ABC
- __abstractmethods__ = frozenset({'await_boot', 'boot', 'reset'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.linuxbootprotocol', 'boot': <function LinuxBootProtocol.boot>, 'await_boot': <function LinuxBootProtocol.await_boot>, 'reset': <function LinuxBootProtocol.reset>, '__dict__': <attribute '__dict__' of 'LinuxBootProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'LinuxBootProtocol' objects>, '__doc__': None, '__abstractmethods__': frozenset({'await_boot', 'boot', 'reset'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.linuxbootprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.mmioprotocol module
- class labgrid.protocol.mmioprotocol.MMIOProtocol[source]
Bases:
ABC
- __abstractmethods__ = frozenset({'read', 'write'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.mmioprotocol', 'read': <function MMIOProtocol.read>, 'write': <function MMIOProtocol.write>, '__dict__': <attribute '__dict__' of 'MMIOProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'MMIOProtocol' objects>, '__doc__': None, '__abstractmethods__': frozenset({'read', 'write'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.mmioprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.powerprotocol module
- class labgrid.protocol.powerprotocol.PowerProtocol[source]
Bases:
ABC
- __abstractmethods__ = frozenset({'cycle', 'off', 'on'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.powerprotocol', 'on': <function PowerProtocol.on>, 'off': <function PowerProtocol.off>, 'cycle': <function PowerProtocol.cycle>, '__dict__': <attribute '__dict__' of 'PowerProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'PowerProtocol' objects>, '__doc__': None, '__abstractmethods__': frozenset({'on', 'off', 'cycle'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.powerprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.resetprotocol module
- class labgrid.protocol.resetprotocol.ResetProtocol[source]
Bases:
ABC
- __abstractmethods__ = frozenset({'reset'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.resetprotocol', 'reset': <function ResetProtocol.reset>, '__dict__': <attribute '__dict__' of 'ResetProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'ResetProtocol' objects>, '__doc__': None, '__abstractmethods__': frozenset({'reset'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.resetprotocol'
- __weakref__
list of weak references to the object (if defined)
labgrid.protocol.videoprotocol module
- class labgrid.protocol.videoprotocol.VideoProtocol[source]
Bases:
ABC
- __abstractmethods__ = frozenset({'get_qualities', 'stream'})
- __annotations__ = {}
- __dict__ = mappingproxy({'__module__': 'labgrid.protocol.videoprotocol', 'get_qualities': <function VideoProtocol.get_qualities>, 'stream': <function VideoProtocol.stream>, '__dict__': <attribute '__dict__' of 'VideoProtocol' objects>, '__weakref__': <attribute '__weakref__' of 'VideoProtocol' objects>, '__doc__': None, '__abstractmethods__': frozenset({'stream', 'get_qualities'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})
- __module__ = 'labgrid.protocol.videoprotocol'
- __weakref__
list of weak references to the object (if defined)