labgrid package
Subpackages
- labgrid.autoinstall package
- labgrid.driver package
- Subpackages
- labgrid.driver.power package
- Submodules
- labgrid.driver.power.apc module
- labgrid.driver.power.digipower module
- labgrid.driver.power.digitalloggers_http module
- labgrid.driver.power.eaton module
- labgrid.driver.power.eg_pms2_network module
- labgrid.driver.power.gude module
- labgrid.driver.power.gude24 module
- labgrid.driver.power.gude8031 module
- labgrid.driver.power.gude8225 module
- labgrid.driver.power.gude8316 module
- labgrid.driver.power.netio module
- labgrid.driver.power.netio_kshell module
- labgrid.driver.power.raritan module
- labgrid.driver.power.rest module
- labgrid.driver.power.sentry module
- labgrid.driver.power.shelly_gen1 module
- labgrid.driver.power.siglent module
- labgrid.driver.power.simplerest module
- labgrid.driver.power.tplink module
- labgrid.driver.usbtmc package
- labgrid.driver.power package
- Submodules
- labgrid.driver.bareboxdriver module
BareboxDriver
BareboxDriver.bindings
BareboxDriver.__attrs_post_init__()
BareboxDriver.on_activate()
BareboxDriver.on_deactivate()
BareboxDriver.run()
BareboxDriver.reset()
BareboxDriver.get_status()
BareboxDriver.await_boot()
BareboxDriver.boot()
BareboxDriver.__abstractmethods__
BareboxDriver.__annotations__
BareboxDriver.__attrs_attrs__
BareboxDriver.__init__()
BareboxDriver.__match_args__
BareboxDriver.__module__
BareboxDriver.__repr__()
- labgrid.driver.commandmixin module
- labgrid.driver.common module
- labgrid.driver.consoleexpectmixin module
ConsoleExpectMixin
ConsoleExpectMixin.__attrs_post_init__()
ConsoleExpectMixin.read()
ConsoleExpectMixin.write()
ConsoleExpectMixin.sendline()
ConsoleExpectMixin.sendcontrol()
ConsoleExpectMixin.expect()
ConsoleExpectMixin.settle()
ConsoleExpectMixin.resolve_conflicts()
ConsoleExpectMixin.__annotations__
ConsoleExpectMixin.__dict__
ConsoleExpectMixin.__module__
ConsoleExpectMixin.__weakref__
- labgrid.driver.dediprogflashdriver module
DediprogFlashDriver
DediprogFlashDriver.bindings
DediprogFlashDriver.__attrs_post_init__()
DediprogFlashDriver.on_activate()
DediprogFlashDriver.on_deactivate()
DediprogFlashDriver.map_vcc()
DediprogFlashDriver.__call__()
DediprogFlashDriver.flash()
DediprogFlashDriver.erase()
DediprogFlashDriver.__annotations__
DediprogFlashDriver.__attrs_attrs__
DediprogFlashDriver.__init__()
DediprogFlashDriver.__match_args__
DediprogFlashDriver.__module__
DediprogFlashDriver.__repr__()
- labgrid.driver.deditecrelaisdriver module
DeditecRelaisDriver
DeditecRelaisDriver.bindings
DeditecRelaisDriver.__attrs_post_init__()
DeditecRelaisDriver.on_activate()
DeditecRelaisDriver.on_deactivate()
DeditecRelaisDriver.set()
DeditecRelaisDriver.get()
DeditecRelaisDriver.__abstractmethods__
DeditecRelaisDriver.__annotations__
DeditecRelaisDriver.__attrs_attrs__
DeditecRelaisDriver.__init__()
DeditecRelaisDriver.__match_args__
DeditecRelaisDriver.__module__
DeditecRelaisDriver.__repr__()
- labgrid.driver.dfudriver module
- labgrid.driver.dockerdriver module
DockerDriver
DockerDriver.bindings
DockerDriver.__attrs_post_init__()
DockerDriver.on_activate()
DockerDriver.on_deactivate()
DockerDriver.on()
DockerDriver.off()
DockerDriver.cycle()
DockerDriver.__abstractmethods__
DockerDriver.__annotations__
DockerDriver.__attrs_attrs__
DockerDriver.__init__()
DockerDriver.__match_args__
DockerDriver.__module__
DockerDriver.__repr__()
- labgrid.driver.exception module
- labgrid.driver.externalconsoledriver module
ExternalConsoleDriver
ExternalConsoleDriver.__attrs_post_init__()
ExternalConsoleDriver.open()
ExternalConsoleDriver.close()
ExternalConsoleDriver.on_activate()
ExternalConsoleDriver.on_deactivate()
ExternalConsoleDriver.__abstractmethods__
ExternalConsoleDriver.__annotations__
ExternalConsoleDriver.__attrs_attrs__
ExternalConsoleDriver.__init__()
ExternalConsoleDriver.__match_args__
ExternalConsoleDriver.__module__
ExternalConsoleDriver.__repr__()
- labgrid.driver.fake module
FakeConsoleDriver
FakeConsoleDriver.__attrs_post_init__()
FakeConsoleDriver.open()
FakeConsoleDriver.close()
FakeConsoleDriver.__abstractmethods__
FakeConsoleDriver.__annotations__
FakeConsoleDriver.__attrs_attrs__
FakeConsoleDriver.__init__()
FakeConsoleDriver.__match_args__
FakeConsoleDriver.__module__
FakeConsoleDriver.__repr__()
FakeCommandDriver
FakeCommandDriver.run()
FakeCommandDriver.run_check()
FakeCommandDriver.get_status()
FakeCommandDriver.__abstractmethods__
FakeCommandDriver.__annotations__
FakeCommandDriver.__attrs_attrs__
FakeCommandDriver.__init__()
FakeCommandDriver.__match_args__
FakeCommandDriver.__module__
FakeCommandDriver.__repr__()
FakeFileTransferDriver
FakeFileTransferDriver.get()
FakeFileTransferDriver.put()
FakeFileTransferDriver.__abstractmethods__
FakeFileTransferDriver.__annotations__
FakeFileTransferDriver.__attrs_attrs__
FakeFileTransferDriver.__init__()
FakeFileTransferDriver.__match_args__
FakeFileTransferDriver.__module__
FakeFileTransferDriver.__repr__()
FakePowerDriver
- labgrid.driver.fastbootdriver module
AndroidFastbootDriver
AndroidFastbootDriver.bindings
AndroidFastbootDriver.__attrs_post_init__()
AndroidFastbootDriver.on_activate()
AndroidFastbootDriver.on_deactivate()
AndroidFastbootDriver.__call__()
AndroidFastbootDriver.boot()
AndroidFastbootDriver.flash()
AndroidFastbootDriver.flash_all()
AndroidFastbootDriver.run()
AndroidFastbootDriver.continue_boot()
AndroidFastbootDriver.getvar()
AndroidFastbootDriver.oem_getenv()
AndroidFastbootDriver.__annotations__
AndroidFastbootDriver.__attrs_attrs__
AndroidFastbootDriver.__init__()
AndroidFastbootDriver.__match_args__
AndroidFastbootDriver.__module__
AndroidFastbootDriver.__repr__()
- labgrid.driver.filedigitaloutput module
FileDigitalOutputDriver
FileDigitalOutputDriver.__attrs_post_init__()
FileDigitalOutputDriver.get()
FileDigitalOutputDriver.set()
FileDigitalOutputDriver.__abstractmethods__
FileDigitalOutputDriver.__annotations__
FileDigitalOutputDriver.__attrs_attrs__
FileDigitalOutputDriver.__init__()
FileDigitalOutputDriver.__match_args__
FileDigitalOutputDriver.__module__
FileDigitalOutputDriver.__repr__()
- labgrid.driver.flashromdriver module
FlashromDriver
FlashromDriver.bindings
FlashromDriver.__attrs_post_init__()
FlashromDriver.on_activate()
FlashromDriver.on_deactivate()
FlashromDriver.__call__()
FlashromDriver.load()
FlashromDriver.__abstractmethods__
FlashromDriver.__annotations__
FlashromDriver.__attrs_attrs__
FlashromDriver.__init__()
FlashromDriver.__match_args__
FlashromDriver.__module__
FlashromDriver.__repr__()
- labgrid.driver.flashscriptdriver module
FlashScriptDriver
FlashScriptDriver.bindings
FlashScriptDriver.__attrs_post_init__()
FlashScriptDriver.on_activate()
FlashScriptDriver.on_deactivate()
FlashScriptDriver.flash()
FlashScriptDriver.__annotations__
FlashScriptDriver.__attrs_attrs__
FlashScriptDriver.__init__()
FlashScriptDriver.__match_args__
FlashScriptDriver.__module__
FlashScriptDriver.__repr__()
- labgrid.driver.gpiodriver module
GpioDigitalOutputDriver
GpioDigitalOutputDriver.bindings
GpioDigitalOutputDriver.__attrs_post_init__()
GpioDigitalOutputDriver.on_activate()
GpioDigitalOutputDriver.on_deactivate()
GpioDigitalOutputDriver.set()
GpioDigitalOutputDriver.get()
GpioDigitalOutputDriver.__abstractmethods__
GpioDigitalOutputDriver.__annotations__
GpioDigitalOutputDriver.__attrs_attrs__
GpioDigitalOutputDriver.__init__()
GpioDigitalOutputDriver.__match_args__
GpioDigitalOutputDriver.__module__
GpioDigitalOutputDriver.__repr__()
- labgrid.driver.httpdigitaloutput module
HttpDigitalOutputDriver
HttpDigitalOutputDriver.bindings
HttpDigitalOutputDriver.__attrs_post_init__()
HttpDigitalOutputDriver.on_activate()
HttpDigitalOutputDriver.set()
HttpDigitalOutputDriver.get()
HttpDigitalOutputDriver.__abstractmethods__
HttpDigitalOutputDriver.__annotations__
HttpDigitalOutputDriver.__attrs_attrs__
HttpDigitalOutputDriver.__init__()
HttpDigitalOutputDriver.__match_args__
HttpDigitalOutputDriver.__module__
HttpDigitalOutputDriver.__repr__()
- labgrid.driver.httpvideodriver module
- labgrid.driver.lxaiobusdriver module
LXAIOBusPIODriver
LXAIOBusPIODriver.bindings
LXAIOBusPIODriver.__attrs_post_init__()
LXAIOBusPIODriver.on_activate()
LXAIOBusPIODriver.set()
LXAIOBusPIODriver.get()
LXAIOBusPIODriver.__abstractmethods__
LXAIOBusPIODriver.__annotations__
LXAIOBusPIODriver.__attrs_attrs__
LXAIOBusPIODriver.__init__()
LXAIOBusPIODriver.__match_args__
LXAIOBusPIODriver.__module__
LXAIOBusPIODriver.__repr__()
- labgrid.driver.lxausbmuxdriver module
- labgrid.driver.manualswitchdriver module
ManualSwitchDriver
ManualSwitchDriver.__attrs_post_init__()
ManualSwitchDriver.set()
ManualSwitchDriver.get()
ManualSwitchDriver.__abstractmethods__
ManualSwitchDriver.__annotations__
ManualSwitchDriver.__attrs_attrs__
ManualSwitchDriver.__init__()
ManualSwitchDriver.__match_args__
ManualSwitchDriver.__module__
ManualSwitchDriver.__repr__()
- labgrid.driver.modbusdriver module
ModbusCoilDriver
ModbusCoilDriver.bindings
ModbusCoilDriver.__attrs_post_init__()
ModbusCoilDriver.on_activate()
ModbusCoilDriver.on_deactivate()
ModbusCoilDriver.set()
ModbusCoilDriver.get()
ModbusCoilDriver.__abstractmethods__
ModbusCoilDriver.__annotations__
ModbusCoilDriver.__attrs_attrs__
ModbusCoilDriver.__init__()
ModbusCoilDriver.__match_args__
ModbusCoilDriver.__module__
ModbusCoilDriver.__repr__()
- labgrid.driver.modbusrtudriver module
ModbusRTUDriver
ModbusRTUDriver.bindings
ModbusRTUDriver.__attrs_post_init__()
ModbusRTUDriver.on_activate()
ModbusRTUDriver.on_deactivate()
ModbusRTUDriver.read_register()
ModbusRTUDriver.write_register()
ModbusRTUDriver.read_registers()
ModbusRTUDriver.write_registers()
ModbusRTUDriver.read_bit()
ModbusRTUDriver.write_bit()
ModbusRTUDriver.read_string()
ModbusRTUDriver.write_string()
ModbusRTUDriver.__annotations__
ModbusRTUDriver.__attrs_attrs__
ModbusRTUDriver.__init__()
ModbusRTUDriver.__match_args__
ModbusRTUDriver.__module__
ModbusRTUDriver.__repr__()
- labgrid.driver.mqtt module
MQTTError
TasmotaPowerDriver
TasmotaPowerDriver.bindings
TasmotaPowerDriver.__attrs_post_init__()
TasmotaPowerDriver.on_activate()
TasmotaPowerDriver.on_deactivate()
TasmotaPowerDriver.on()
TasmotaPowerDriver.off()
TasmotaPowerDriver.cycle()
TasmotaPowerDriver.get()
TasmotaPowerDriver.__abstractmethods__
TasmotaPowerDriver.__annotations__
TasmotaPowerDriver.__attrs_attrs__
TasmotaPowerDriver.__init__()
TasmotaPowerDriver.__match_args__
TasmotaPowerDriver.__module__
TasmotaPowerDriver.__repr__()
- labgrid.driver.networkinterfacedriver module
NetworkInterfaceDriver
NetworkInterfaceDriver.bindings
NetworkInterfaceDriver.__attrs_post_init__()
NetworkInterfaceDriver.on_activate()
NetworkInterfaceDriver.on_deactivate()
NetworkInterfaceDriver.skip_deactivate_on_export
NetworkInterfaceDriver.get_export_vars()
NetworkInterfaceDriver.configure()
NetworkInterfaceDriver.wait_state()
NetworkInterfaceDriver.disable()
NetworkInterfaceDriver.get_active_settings()
NetworkInterfaceDriver.get_settings()
NetworkInterfaceDriver.get_state()
NetworkInterfaceDriver.get_dhcpd_leases()
NetworkInterfaceDriver.request_scan()
NetworkInterfaceDriver.get_access_points()
NetworkInterfaceDriver.forward_local()
NetworkInterfaceDriver.forward_remote()
NetworkInterfaceDriver.__annotations__
NetworkInterfaceDriver.__attrs_attrs__
NetworkInterfaceDriver.__init__()
NetworkInterfaceDriver.__match_args__
NetworkInterfaceDriver.__module__
NetworkInterfaceDriver.__repr__()
- labgrid.driver.onewiredriver module
OneWirePIODriver
OneWirePIODriver.bindings
OneWirePIODriver.__attrs_post_init__()
OneWirePIODriver.on_activate()
OneWirePIODriver.on_deactivate()
OneWirePIODriver.set()
OneWirePIODriver.get()
OneWirePIODriver.__abstractmethods__
OneWirePIODriver.__annotations__
OneWirePIODriver.__attrs_attrs__
OneWirePIODriver.__init__()
OneWirePIODriver.__match_args__
OneWirePIODriver.__module__
OneWirePIODriver.__repr__()
- labgrid.driver.openocddriver module
OpenOCDDriver
OpenOCDDriver.bindings
OpenOCDDriver.__attrs_post_init__()
OpenOCDDriver.load()
OpenOCDDriver.execute()
OpenOCDDriver.__abstractmethods__
OpenOCDDriver.__annotations__
OpenOCDDriver.__attrs_attrs__
OpenOCDDriver.__init__()
OpenOCDDriver.__match_args__
OpenOCDDriver.__module__
OpenOCDDriver.__repr__()
- labgrid.driver.powerdriver module
PowerResetMixin
PowerResetMixin.priorities
PowerResetMixin.__attrs_post_init__()
PowerResetMixin.reset()
PowerResetMixin.__abstractmethods__
PowerResetMixin.__annotations__
PowerResetMixin.__attrs_attrs__
PowerResetMixin.__init__()
PowerResetMixin.__match_args__
PowerResetMixin.__module__
PowerResetMixin.__repr__()
ManualPowerDriver
SiSPMPowerDriver
SiSPMPowerDriver.bindings
SiSPMPowerDriver.__attrs_post_init__()
SiSPMPowerDriver.on()
SiSPMPowerDriver.off()
SiSPMPowerDriver.cycle()
SiSPMPowerDriver.get()
SiSPMPowerDriver.__abstractmethods__
SiSPMPowerDriver.__annotations__
SiSPMPowerDriver.__attrs_attrs__
SiSPMPowerDriver.__init__()
SiSPMPowerDriver.__match_args__
SiSPMPowerDriver.__module__
SiSPMPowerDriver.__repr__()
ExternalPowerDriver
ExternalPowerDriver.on()
ExternalPowerDriver.off()
ExternalPowerDriver.cycle()
ExternalPowerDriver.__abstractmethods__
ExternalPowerDriver.__annotations__
ExternalPowerDriver.__attrs_attrs__
ExternalPowerDriver.__init__()
ExternalPowerDriver.__match_args__
ExternalPowerDriver.__module__
ExternalPowerDriver.__repr__()
NetworkPowerDriver
NetworkPowerDriver.bindings
NetworkPowerDriver.__attrs_post_init__()
NetworkPowerDriver.on_activate()
NetworkPowerDriver.set_proxy_from_url()
NetworkPowerDriver.on()
NetworkPowerDriver.off()
NetworkPowerDriver.cycle()
NetworkPowerDriver.get()
NetworkPowerDriver.__abstractmethods__
NetworkPowerDriver.__annotations__
NetworkPowerDriver.__attrs_attrs__
NetworkPowerDriver.__init__()
NetworkPowerDriver.__match_args__
NetworkPowerDriver.__module__
NetworkPowerDriver.__repr__()
DigitalOutputPowerDriver
DigitalOutputPowerDriver.bindings
DigitalOutputPowerDriver.__attrs_post_init__()
DigitalOutputPowerDriver.on()
DigitalOutputPowerDriver.off()
DigitalOutputPowerDriver.cycle()
DigitalOutputPowerDriver.get()
DigitalOutputPowerDriver.__abstractmethods__
DigitalOutputPowerDriver.__annotations__
DigitalOutputPowerDriver.__attrs_attrs__
DigitalOutputPowerDriver.__init__()
DigitalOutputPowerDriver.__match_args__
DigitalOutputPowerDriver.__module__
DigitalOutputPowerDriver.__repr__()
YKUSHPowerDriver
YKUSHPowerDriver.bindings
YKUSHPowerDriver.__attrs_post_init__()
YKUSHPowerDriver.on()
YKUSHPowerDriver.off()
YKUSHPowerDriver.cycle()
YKUSHPowerDriver.get()
YKUSHPowerDriver.__abstractmethods__
YKUSHPowerDriver.__annotations__
YKUSHPowerDriver.__attrs_attrs__
YKUSHPowerDriver.__init__()
YKUSHPowerDriver.__match_args__
YKUSHPowerDriver.__module__
YKUSHPowerDriver.__repr__()
USBPowerDriver
USBPowerDriver.bindings
USBPowerDriver.__attrs_post_init__()
USBPowerDriver.on()
USBPowerDriver.off()
USBPowerDriver.cycle()
USBPowerDriver.get()
USBPowerDriver.__abstractmethods__
USBPowerDriver.__annotations__
USBPowerDriver.__attrs_attrs__
USBPowerDriver.__init__()
USBPowerDriver.__match_args__
USBPowerDriver.__module__
USBPowerDriver.__repr__()
PDUDaemonDriver
PDUDaemonDriver.bindings
PDUDaemonDriver.__attrs_post_init__()
PDUDaemonDriver.on_activate()
PDUDaemonDriver.on()
PDUDaemonDriver.off()
PDUDaemonDriver.cycle()
PDUDaemonDriver.get()
PDUDaemonDriver.__abstractmethods__
PDUDaemonDriver.__annotations__
PDUDaemonDriver.__attrs_attrs__
PDUDaemonDriver.__init__()
PDUDaemonDriver.__match_args__
PDUDaemonDriver.__module__
PDUDaemonDriver.__repr__()
- labgrid.driver.provider module
- labgrid.driver.pyvisadriver module
- labgrid.driver.qemudriver module
QEMUDriver
QEMUDriver.__attrs_post_init__()
QEMUDriver.get_qemu_version()
QEMUDriver.get_qemu_base_args()
QEMUDriver.on_activate()
QEMUDriver.on_deactivate()
QEMUDriver.on()
QEMUDriver.off()
QEMUDriver.cycle()
QEMUDriver.monitor_command()
QEMUDriver.add_port_forward()
QEMUDriver.remove_port_forward()
QEMUDriver.__str__()
QEMUDriver.__abstractmethods__
QEMUDriver.__annotations__
QEMUDriver.__attrs_attrs__
QEMUDriver.__init__()
QEMUDriver.__match_args__
QEMUDriver.__module__
QEMUDriver.__repr__()
- labgrid.driver.quartushpsdriver module
- labgrid.driver.resetdriver module
DigitalOutputResetDriver
DigitalOutputResetDriver.bindings
DigitalOutputResetDriver.__attrs_post_init__()
DigitalOutputResetDriver.reset()
DigitalOutputResetDriver.__abstractmethods__
DigitalOutputResetDriver.__annotations__
DigitalOutputResetDriver.__attrs_attrs__
DigitalOutputResetDriver.__init__()
DigitalOutputResetDriver.__match_args__
DigitalOutputResetDriver.__module__
DigitalOutputResetDriver.__repr__()
- labgrid.driver.serialdigitaloutput module
SerialPortDigitalOutputDriver
SerialPortDigitalOutputDriver.bindings
SerialPortDigitalOutputDriver.__attrs_post_init__()
SerialPortDigitalOutputDriver.get()
SerialPortDigitalOutputDriver.set()
SerialPortDigitalOutputDriver.__abstractmethods__
SerialPortDigitalOutputDriver.__annotations__
SerialPortDigitalOutputDriver.__attrs_attrs__
SerialPortDigitalOutputDriver.__init__()
SerialPortDigitalOutputDriver.__match_args__
SerialPortDigitalOutputDriver.__module__
SerialPortDigitalOutputDriver.__repr__()
- labgrid.driver.serialdriver module
SerialDriver
SerialDriver.bindings
SerialDriver.__attrs_post_init__()
SerialDriver.on_activate()
SerialDriver.on_deactivate()
SerialDriver.get_export_vars()
SerialDriver.open()
SerialDriver.close()
SerialDriver.__str__()
SerialDriver.__abstractmethods__
SerialDriver.__annotations__
SerialDriver.__attrs_attrs__
SerialDriver.__init__()
SerialDriver.__match_args__
SerialDriver.__module__
SerialDriver.__repr__()
- labgrid.driver.shelldriver module
ShellDriver
ShellDriver.bindings
ShellDriver.__attrs_post_init__()
ShellDriver.on_activate()
ShellDriver.on_deactivate()
ShellDriver.run()
ShellDriver.get_status()
ShellDriver.put_ssh_key()
ShellDriver.put_bytes()
ShellDriver.put()
ShellDriver.get_bytes()
ShellDriver.get()
ShellDriver.run_script()
ShellDriver.run_script_file()
ShellDriver.get_default_interface_device_name()
ShellDriver.get_ip_addresses()
ShellDriver.__abstractmethods__
ShellDriver.__annotations__
ShellDriver.__attrs_attrs__
ShellDriver.__init__()
ShellDriver.__match_args__
ShellDriver.__module__
ShellDriver.__repr__()
- labgrid.driver.sigrokdriver module
SigrokCommon
SigrokDriver
SigrokPowerDriver
SigrokPowerDriver.bindings
SigrokPowerDriver.on()
SigrokPowerDriver.off()
SigrokPowerDriver.cycle()
SigrokPowerDriver.set_voltage_target()
SigrokPowerDriver.set_current_limit()
SigrokPowerDriver.get()
SigrokPowerDriver.measure()
SigrokPowerDriver.__abstractmethods__
SigrokPowerDriver.__annotations__
SigrokPowerDriver.__attrs_attrs__
SigrokPowerDriver.__init__()
SigrokPowerDriver.__match_args__
SigrokPowerDriver.__module__
SigrokPowerDriver.__repr__()
SigrokDmmDriver
SigrokDmmDriver.bindings
SigrokDmmDriver.capture()
SigrokDmmDriver.stop()
SigrokDmmDriver.on_activate()
SigrokDmmDriver.on_deactivate()
SigrokDmmDriver.__annotations__
SigrokDmmDriver.__attrs_attrs__
SigrokDmmDriver.__init__()
SigrokDmmDriver.__match_args__
SigrokDmmDriver.__module__
SigrokDmmDriver.__repr__()
- labgrid.driver.smallubootdriver module
- labgrid.driver.sshdriver module
SSHDriver
SSHDriver.bindings
SSHDriver.priorities
SSHDriver.__attrs_post_init__()
SSHDriver.on_activate()
SSHDriver.on_deactivate()
SSHDriver.skip_deactivate_on_export
SSHDriver.run()
SSHDriver.interact()
SSHDriver.forward_local_port()
SSHDriver.forward_remote_port()
SSHDriver.forward_unix_socket()
SSHDriver.scp()
SSHDriver.rsync()
SSHDriver.sshfs()
SSHDriver.get_status()
SSHDriver.put()
SSHDriver.get()
SSHDriver.__abstractmethods__
SSHDriver.__annotations__
SSHDriver.__attrs_attrs__
SSHDriver.__init__()
SSHDriver.__match_args__
SSHDriver.__module__
SSHDriver.__repr__()
- labgrid.driver.ubootdriver module
UBootDriver
UBootDriver.bindings
UBootDriver.__attrs_post_init__()
UBootDriver.on_activate()
UBootDriver.on_deactivate()
UBootDriver.run()
UBootDriver.get_status()
UBootDriver.reset()
UBootDriver.await_boot()
UBootDriver.boot()
UBootDriver.__abstractmethods__
UBootDriver.__annotations__
UBootDriver.__attrs_attrs__
UBootDriver.__init__()
UBootDriver.__match_args__
UBootDriver.__module__
UBootDriver.__repr__()
- labgrid.driver.usbaudiodriver module
USBAudioInputDriver
USBAudioInputDriver.bindings
USBAudioInputDriver.__attrs_post_init__()
USBAudioInputDriver.start_sender()
USBAudioInputDriver.create_gst_src()
USBAudioInputDriver.measure_level()
USBAudioInputDriver.play()
USBAudioInputDriver.__annotations__
USBAudioInputDriver.__attrs_attrs__
USBAudioInputDriver.__init__()
USBAudioInputDriver.__match_args__
USBAudioInputDriver.__module__
USBAudioInputDriver.__repr__()
- labgrid.driver.usbhidrelay module
HIDRelayDriver
HIDRelayDriver.bindings
HIDRelayDriver.__attrs_post_init__()
HIDRelayDriver.on_activate()
HIDRelayDriver.on_deactivate()
HIDRelayDriver.set()
HIDRelayDriver.get()
HIDRelayDriver.__abstractmethods__
HIDRelayDriver.__annotations__
HIDRelayDriver.__attrs_attrs__
HIDRelayDriver.__init__()
HIDRelayDriver.__match_args__
HIDRelayDriver.__module__
HIDRelayDriver.__repr__()
- labgrid.driver.usbloader module
MXSUSBDriver
MXSUSBDriver.bindings
MXSUSBDriver.__attrs_post_init__()
MXSUSBDriver.on_activate()
MXSUSBDriver.on_deactivate()
MXSUSBDriver.load()
MXSUSBDriver.__abstractmethods__
MXSUSBDriver.__annotations__
MXSUSBDriver.__attrs_attrs__
MXSUSBDriver.__init__()
MXSUSBDriver.__match_args__
MXSUSBDriver.__module__
MXSUSBDriver.__repr__()
IMXUSBDriver
IMXUSBDriver.bindings
IMXUSBDriver.__attrs_post_init__()
IMXUSBDriver.on_activate()
IMXUSBDriver.on_deactivate()
IMXUSBDriver.load()
IMXUSBDriver.__abstractmethods__
IMXUSBDriver.__annotations__
IMXUSBDriver.__attrs_attrs__
IMXUSBDriver.__init__()
IMXUSBDriver.__match_args__
IMXUSBDriver.__module__
IMXUSBDriver.__repr__()
RKUSBDriver
RKUSBDriver.bindings
RKUSBDriver.__attrs_post_init__()
RKUSBDriver.on_activate()
RKUSBDriver.on_deactivate()
RKUSBDriver.load()
RKUSBDriver.__abstractmethods__
RKUSBDriver.__annotations__
RKUSBDriver.__attrs_attrs__
RKUSBDriver.__init__()
RKUSBDriver.__match_args__
RKUSBDriver.__module__
RKUSBDriver.__repr__()
UUUDriver
BDIMXUSBDriver
BDIMXUSBDriver.bindings
BDIMXUSBDriver.__attrs_post_init__()
BDIMXUSBDriver.on_activate()
BDIMXUSBDriver.on_deactivate()
BDIMXUSBDriver.load()
BDIMXUSBDriver.__abstractmethods__
BDIMXUSBDriver.__annotations__
BDIMXUSBDriver.__attrs_attrs__
BDIMXUSBDriver.__init__()
BDIMXUSBDriver.__match_args__
BDIMXUSBDriver.__module__
BDIMXUSBDriver.__repr__()
- labgrid.driver.usbsdmuxdriver module
- labgrid.driver.usbsdwiredriver module
- labgrid.driver.usbstoragedriver module
Mode
USBStorageDriver
USBStorageDriver.bindings
USBStorageDriver.__attrs_post_init__()
USBStorageDriver.on_activate()
USBStorageDriver.on_deactivate()
USBStorageDriver.write_image()
USBStorageDriver.get_size()
USBStorageDriver.__annotations__
USBStorageDriver.__attrs_attrs__
USBStorageDriver.__init__()
USBStorageDriver.__match_args__
USBStorageDriver.__module__
USBStorageDriver.__repr__()
NetworkUSBStorageDriver
- labgrid.driver.usbtmcdriver module
USBTMCDriver
USBTMCDriver.bindings
USBTMCDriver.__attrs_post_init__()
USBTMCDriver.on_activate()
USBTMCDriver.on_deactivate()
USBTMCDriver.command()
USBTMCDriver.query()
USBTMCDriver.identify()
USBTMCDriver.get_channel_info()
USBTMCDriver.get_channel_values()
USBTMCDriver.get_screenshot()
USBTMCDriver.get_bool()
USBTMCDriver.get_int()
USBTMCDriver.get_decimal()
USBTMCDriver.get_str()
USBTMCDriver.__annotations__
USBTMCDriver.__attrs_attrs__
USBTMCDriver.__init__()
USBTMCDriver.__match_args__
USBTMCDriver.__module__
USBTMCDriver.__repr__()
- labgrid.driver.usbvideodriver module
USBVideoDriver
USBVideoDriver.bindings
USBVideoDriver.__attrs_post_init__()
USBVideoDriver.get_qualities()
USBVideoDriver.select_caps()
USBVideoDriver.get_pipeline()
USBVideoDriver.stream()
USBVideoDriver.__abstractmethods__
USBVideoDriver.__annotations__
USBVideoDriver.__attrs_attrs__
USBVideoDriver.__init__()
USBVideoDriver.__match_args__
USBVideoDriver.__module__
USBVideoDriver.__repr__()
- labgrid.driver.xenadriver module
- Subpackages
- labgrid.protocol package
- Submodules
- labgrid.protocol.bootstrapprotocol module
- labgrid.protocol.commandprotocol module
- labgrid.protocol.consoleprotocol module
- labgrid.protocol.digitaloutputprotocol module
- labgrid.protocol.filesystemprotocol module
- labgrid.protocol.filetransferprotocol module
- labgrid.protocol.infoprotocol module
- labgrid.protocol.linuxbootprotocol module
- labgrid.protocol.mmioprotocol module
- labgrid.protocol.powerprotocol module
- labgrid.protocol.resetprotocol module
- labgrid.protocol.videoprotocol module
- labgrid.pytestplugin package
- labgrid.remote package
- Submodules
- labgrid.remote.client module
- labgrid.remote.common module
ResourceEntry
ResourceEntry.__attrs_post_init__()
ResourceEntry.acquired
ResourceEntry.avail
ResourceEntry.cls
ResourceEntry.params
ResourceEntry.args
ResourceEntry.extra
ResourceEntry.asdict()
ResourceEntry.update()
ResourceEntry.acquire()
ResourceEntry.release()
ResourceEntry.__annotations__
ResourceEntry.__attrs_attrs__
ResourceEntry.__dict__
ResourceEntry.__init__()
ResourceEntry.__match_args__
ResourceEntry.__module__
ResourceEntry.__repr__()
ResourceEntry.__weakref__
ResourceMatch
ResourceMatch.fromstr()
ResourceMatch.__repr__()
ResourceMatch.__str__()
ResourceMatch.ismatch()
ResourceMatch.__annotations__
ResourceMatch.__attrs_attrs__
ResourceMatch.__dict__
ResourceMatch.__eq__()
ResourceMatch.__ge__()
ResourceMatch.__gt__()
ResourceMatch.__hash__
ResourceMatch.__init__()
ResourceMatch.__le__()
ResourceMatch.__lt__()
ResourceMatch.__match_args__
ResourceMatch.__module__
ResourceMatch.__ne__()
ResourceMatch.__weakref__
Place
ReservationState
Reservation
enable_tcp_nodelay()
- labgrid.remote.config module
- labgrid.remote.coordinator module
- labgrid.remote.exporter module
ExporterError
BrokenResourceError
log_subprocess_kernel_stack()
ResourceExport
ResourceExport.__attrs_post_init__()
ResourceExport.broken
ResourceExport.start()
ResourceExport.stop()
ResourceExport.poll()
ResourceExport.acquire()
ResourceExport.release()
ResourceExport.__annotations__
ResourceExport.__attrs_attrs__
ResourceExport.__init__()
ResourceExport.__match_args__
ResourceExport.__module__
ResourceExport.__repr__()
SerialPortExport
NetworkInterfaceExport
USBGenericExport
USBSigrokExport
USBSDMuxExport
USBSDWireExport
USBAudioInputExport
SiSPMPowerPortExport
USBPowerPortExport
USBDeditecRelaisExport
USBHIDRelayExport
USBFlashableExport
USBGenericRemoteExport
ProviderGenericExport
EthernetPortExport
EthernetPortExport.__attrs_post_init__()
EthernetPortExport.__annotations__
EthernetPortExport.__attrs_attrs__
EthernetPortExport.__eq__()
EthernetPortExport.__ge__()
EthernetPortExport.__gt__()
EthernetPortExport.__hash__
EthernetPortExport.__init__()
EthernetPortExport.__le__()
EthernetPortExport.__lt__()
EthernetPortExport.__match_args__
EthernetPortExport.__module__
EthernetPortExport.__ne__()
EthernetPortExport.__repr__()
GPIOSysFSExport
NetworkServiceExport
NetworkServiceExport.__attrs_post_init__()
NetworkServiceExport.__annotations__
NetworkServiceExport.__attrs_attrs__
NetworkServiceExport.__eq__()
NetworkServiceExport.__ge__()
NetworkServiceExport.__gt__()
NetworkServiceExport.__hash__
NetworkServiceExport.__init__()
NetworkServiceExport.__le__()
NetworkServiceExport.__lt__()
NetworkServiceExport.__match_args__
NetworkServiceExport.__module__
NetworkServiceExport.__ne__()
NetworkServiceExport.__repr__()
HTTPVideoStreamExport
HTTPVideoStreamExport.__attrs_post_init__()
HTTPVideoStreamExport.__annotations__
HTTPVideoStreamExport.__attrs_attrs__
HTTPVideoStreamExport.__eq__()
HTTPVideoStreamExport.__ge__()
HTTPVideoStreamExport.__gt__()
HTTPVideoStreamExport.__hash__
HTTPVideoStreamExport.__init__()
HTTPVideoStreamExport.__le__()
HTTPVideoStreamExport.__lt__()
HTTPVideoStreamExport.__match_args__
HTTPVideoStreamExport.__module__
HTTPVideoStreamExport.__ne__()
HTTPVideoStreamExport.__repr__()
LXAIOBusNodeExport
AndroidNetFastbootExport
YKUSHPowerPortExport
main()
- labgrid.remote.scheduler module
- labgrid.resource package
- Submodules
- labgrid.resource.base module
SerialPort
NetworkInterface
EthernetPort
EthernetPort.__annotations__
EthernetPort.__attrs_attrs__
EthernetPort.__eq__()
EthernetPort.__ge__()
EthernetPort.__gt__()
EthernetPort.__hash__
EthernetPort.__init__()
EthernetPort.__le__()
EthernetPort.__lt__()
EthernetPort.__match_args__
EthernetPort.__module__
EthernetPort.__ne__()
EthernetPort.__repr__()
SysfsGPIO
- labgrid.resource.common module
Resource
Resource.__attrs_post_init__()
Resource.command_prefix
Resource.wrap_command()
Resource.parent
Resource.get_managed_parent()
Resource.poll()
Resource.get_bound_resources()
Resource.__annotations__
Resource.__attrs_attrs__
Resource.__init__()
Resource.__match_args__
Resource.__module__
Resource.__repr__()
NetworkResource
ResourceManager
ResourceManager.instances
ResourceManager.get()
ResourceManager.__attrs_post_init__()
ResourceManager.on_resource_added()
ResourceManager.poll()
ResourceManager.__annotations__
ResourceManager.__attrs_attrs__
ResourceManager.__dict__
ResourceManager.__init__()
ResourceManager.__match_args__
ResourceManager.__module__
ResourceManager.__repr__()
ResourceManager.__weakref__
ManagedResource
ManagedResource.manager_cls
ManagedResource.__attrs_post_init__()
ManagedResource.poll()
ManagedResource.__annotations__
ManagedResource.__attrs_attrs__
ManagedResource.__init__()
ManagedResource.__match_args__
ManagedResource.__module__
ManagedResource.__repr__()
ManagedResource.get_managed_parent()
- labgrid.resource.dediprogflasher module
- labgrid.resource.docker module
DockerConstants
DockerManager
DockerDaemon
DockerDaemon.docker_daemon_url
DockerDaemon.manager_cls
DockerDaemon.__attrs_post_init__()
DockerDaemon.on_client_bound()
DockerDaemon.on_poll()
DockerDaemon.__annotations__
DockerDaemon.__attrs_attrs__
DockerDaemon.__init__()
DockerDaemon.__match_args__
DockerDaemon.__module__
DockerDaemon.__repr__()
- labgrid.resource.ethernetport module
SNMPSwitch
SNMPSwitch.__attrs_post_init__()
SNMPSwitch.update()
SNMPSwitch.__annotations__
SNMPSwitch.__attrs_attrs__
SNMPSwitch.__dict__
SNMPSwitch.__eq__()
SNMPSwitch.__ge__()
SNMPSwitch.__gt__()
SNMPSwitch.__hash__
SNMPSwitch.__init__()
SNMPSwitch.__le__()
SNMPSwitch.__lt__()
SNMPSwitch.__match_args__
SNMPSwitch.__module__
SNMPSwitch.__ne__()
SNMPSwitch.__repr__()
SNMPSwitch.__weakref__
EthernetPortManager
EthernetPortManager.__attrs_post_init__()
EthernetPortManager.on_resource_added()
EthernetPortManager.poll()
EthernetPortManager.__annotations__
EthernetPortManager.__attrs_attrs__
EthernetPortManager.__eq__()
EthernetPortManager.__ge__()
EthernetPortManager.__gt__()
EthernetPortManager.__hash__
EthernetPortManager.__init__()
EthernetPortManager.__le__()
EthernetPortManager.__lt__()
EthernetPortManager.__match_args__
EthernetPortManager.__module__
EthernetPortManager.__ne__()
EthernetPortManager.__repr__()
SNMPEthernetPort
SNMPEthernetPort.manager_cls
SNMPEthernetPort.__attrs_post_init__()
SNMPEthernetPort.__annotations__
SNMPEthernetPort.__attrs_attrs__
SNMPEthernetPort.__eq__()
SNMPEthernetPort.__ge__()
SNMPEthernetPort.__gt__()
SNMPEthernetPort.__hash__
SNMPEthernetPort.__init__()
SNMPEthernetPort.__le__()
SNMPEthernetPort.__lt__()
SNMPEthernetPort.__match_args__
SNMPEthernetPort.__module__
SNMPEthernetPort.__ne__()
SNMPEthernetPort.__repr__()
- labgrid.resource.fastboot module
- labgrid.resource.flashrom module
- labgrid.resource.httpdigitalout module
- labgrid.resource.httpvideostream module
- labgrid.resource.lxaiobus module
- labgrid.resource.modbus module
- labgrid.resource.modbusrtu module
- labgrid.resource.mqtt module
- labgrid.resource.networkservice module
- labgrid.resource.onewireport module
- labgrid.resource.power module
- labgrid.resource.provider module
- labgrid.resource.pyvisa module
- labgrid.resource.remote module
RemotePlaceManager
RemotePlace
RemoteUSBResource
RemoteAndroidUSBFastboot
NetworkAndroidFastboot
RemoteAndroidNetFastboot
NetworkDFUDevice
NetworkIMXUSBLoader
NetworkMXSUSBLoader
NetworkRKUSBLoader
NetworkAlteraUSBBlaster
NetworkSigrokUSBDevice
NetworkSigrokUSBSerialDevice
NetworkSigrokUSBSerialDevice.__attrs_post_init__()
NetworkSigrokUSBSerialDevice.__annotations__
NetworkSigrokUSBSerialDevice.__attrs_attrs__
NetworkSigrokUSBSerialDevice.__init__()
NetworkSigrokUSBSerialDevice.__match_args__
NetworkSigrokUSBSerialDevice.__module__
NetworkSigrokUSBSerialDevice.__repr__()
NetworkUSBMassStorage
NetworkUSBSDMuxDevice
NetworkUSBSDWireDevice
NetworkSiSPMPowerPort
NetworkUSBPowerPort
NetworkUSBVideo
NetworkUSBAudioInput
NetworkUSBTMC
NetworkUSBDebugger
NetworkDeditecRelais8
NetworkHIDRelay
NetworkSysfsGPIO
NetworkLXAIOBusNode
NetworkLXAIOBusPIO
NetworkLXAUSBMux
NetworkUSBFlashableDevice
NetworkMQTTResource
RemoteNetworkInterface
RemoteBaseProvider
RemoteTFTPProvider
RemoteNFSProvider
RemoteHTTPProvider
- labgrid.resource.serialport module
- labgrid.resource.sigrok module
- labgrid.resource.suggest module
- labgrid.resource.udev module
UdevManager
USBResource
USBResource.manager_cls
USBResource.__attrs_post_init__()
USBResource.filter_match()
USBResource.suggest_match()
USBResource.try_match()
USBResource.update()
USBResource.busnum
USBResource.devnum
USBResource.path
USBResource.vendor_id
USBResource.model_id
USBResource.read_attr()
USBResource.__annotations__
USBResource.__attrs_attrs__
USBResource.__init__()
USBResource.__match_args__
USBResource.__module__
USBResource.__repr__()
USBSerialPort
USBMassStorage
IMXUSBLoader
RKUSBLoader
MXSUSBLoader
AndroidUSBFastboot
AndroidFastboot
DFUDevice
USBNetworkInterface
AlteraUSBBlaster
SigrokUSBDevice
SigrokUSBSerialDevice
USBSDWireDevice
USBSDWireDevice.__attrs_post_init__()
USBSDWireDevice.avail
USBSDWireDevice.poll()
USBSDWireDevice.update()
USBSDWireDevice.path
USBSDWireDevice.__annotations__
USBSDWireDevice.__attrs_attrs__
USBSDWireDevice.__init__()
USBSDWireDevice.__match_args__
USBSDWireDevice.__module__
USBSDWireDevice.__repr__()
USBSDMuxDevice
USBPowerPort
SiSPMPowerPort
USBVideo
USBAudioInput
USBTMC
DeditecRelais8
HIDRelay
USBFlashableDevice
LXAUSBMux
USBDebugger
- labgrid.resource.xenamanager module
- labgrid.resource.ykushpowerport module
- labgrid.strategy package
- Submodules
- labgrid.strategy.bareboxstrategy module
- labgrid.strategy.common module
StrategyError
Strategy
Strategy.__attrs_post_init__()
Strategy.on_client_bound()
Strategy.on_activate()
Strategy.on_deactivate()
Strategy.resolve_conflicts()
Strategy.transition()
Strategy.force()
Strategy.prepare_export()
Strategy.__annotations__
Strategy.__attrs_attrs__
Strategy.__init__()
Strategy.__match_args__
Strategy.__module__
Strategy.__repr__()
- labgrid.strategy.dockerstrategy module
- labgrid.strategy.graphstrategy module
- labgrid.strategy.shellstrategy module
- labgrid.strategy.ubootstrategy module
- labgrid.util package
- Subpackages
- Submodules
- labgrid.util.agent module
- labgrid.util.agentwrapper module
- labgrid.util.atomic module
- labgrid.util.dict module
- labgrid.util.exceptions module
- labgrid.util.expect module
- labgrid.util.helper module
get_free_port()
get_user()
set_nonblocking()
ProcessWrapper
ProcessWrapper.loglevel
ProcessWrapper.check_output()
ProcessWrapper.register()
ProcessWrapper.unregister()
ProcessWrapper.log_callback()
ProcessWrapper.print_callback()
ProcessWrapper.enable_logging()
ProcessWrapper.disable_logging()
ProcessWrapper.enable_print()
ProcessWrapper.disable_print()
ProcessWrapper.__annotations__
ProcessWrapper.__attrs_attrs__
ProcessWrapper.__dict__
ProcessWrapper.__eq__()
ProcessWrapper.__ge__()
ProcessWrapper.__gt__()
ProcessWrapper.__hash__
ProcessWrapper.__init__()
ProcessWrapper.__le__()
ProcessWrapper.__lt__()
ProcessWrapper.__match_args__
ProcessWrapper.__module__
ProcessWrapper.__ne__()
ProcessWrapper.__repr__()
ProcessWrapper.__weakref__
- labgrid.util.managedfile module
ManagedFileError
ManagedFile
ManagedFile.__attrs_post_init__()
ManagedFile.sync_to_resource()
ManagedFile.get_remote_path()
ManagedFile.get_hash()
ManagedFile.__annotations__
ManagedFile.__attrs_attrs__
ManagedFile.__dict__
ManagedFile.__eq__()
ManagedFile.__ge__()
ManagedFile.__gt__()
ManagedFile.__hash__
ManagedFile.__init__()
ManagedFile.__le__()
ManagedFile.__lt__()
ManagedFile.__match_args__
ManagedFile.__module__
ManagedFile.__ne__()
ManagedFile.__repr__()
ManagedFile.__weakref__
- labgrid.util.marker module
- labgrid.util.proxy module
- labgrid.util.qmp module
- labgrid.util.snmp module
- labgrid.util.ssh module
SSHConnection
SSHConnection.__attrs_post_init__()
SSHConnection.get_prefix()
SSHConnection.run()
SSHConnection.run_check()
SSHConnection.get_file()
SSHConnection.put_file()
SSHConnection.add_port_forward()
SSHConnection.remove_port_forward()
SSHConnection.add_remote_port_forward()
SSHConnection.remove_remote_port_forward()
SSHConnection.connect()
SSHConnection.isconnected()
SSHConnection.disconnect()
SSHConnection.cleanup()
SSHConnection.__annotations__
SSHConnection.__attrs_attrs__
SSHConnection.__dict__
SSHConnection.__eq__()
SSHConnection.__ge__()
SSHConnection.__gt__()
SSHConnection.__hash__
SSHConnection.__init__()
SSHConnection.__le__()
SSHConnection.__lt__()
SSHConnection.__match_args__
SSHConnection.__module__
SSHConnection.__ne__()
SSHConnection.__repr__()
SSHConnection.__weakref__
ForwardError
ForwardError.__annotations__
ForwardError.__attrs_attrs__
ForwardError.__eq__()
ForwardError.__ge__()
ForwardError.__gt__()
ForwardError.__hash__
ForwardError.__init__()
ForwardError.__le__()
ForwardError.__lt__()
ForwardError.__match_args__
ForwardError.__module__
ForwardError.__ne__()
ForwardError.__repr__()
ForwardError.__weakref__
- labgrid.util.timeout module
- labgrid.util.version module
- labgrid.util.yaml module
Submodules
labgrid.binding module
- exception labgrid.binding.StateError(msg)[source]
Bases:
Exception
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='msg', 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='msg'),)
- __init__(msg) None
Method generated by attrs for class StateError.
- __match_args__ = ('msg',)
- __module__ = 'labgrid.binding'
- __repr__()
Method generated by attrs for class StateError.
- __weakref__
list of weak references to the object (if defined)
- exception labgrid.binding.BindingError(msg)[source]
Bases:
Exception
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='msg', 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='msg'),)
- __init__(msg) None
Method generated by attrs for class BindingError.
- __match_args__ = ('msg',)
- __module__ = 'labgrid.binding'
- __repr__()
Method generated by attrs for class BindingError.
- __weakref__
list of weak references to the object (if defined)
- class labgrid.binding.BindingState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
Enum
- error = -1
- idle = 0
- bound = 1
- active = 2
- __module__ = 'labgrid.binding'
- class labgrid.binding.BindingMixin(target, name)[source]
Bases:
object
Handles the binding and activation of drivers and their supplying resources and drivers.
One client can be bound to many suppliers, and one supplier can be bound by many clients.
Conflicting access to one supplier can be avoided by deactivating conflicting clients before activation (using the resolve_conflicts callback).
- bindings: Dict[str, Any] = {}
- property display_name
- resolve_conflicts(client)[source]
Called by the Target to allow this object to deactivate conflicting clients.
- get_bound_resources()[source]
Called by the Target to find the correct driver corresponding to a resource
- class NamedBinding(value)[source]
Bases:
object
Marks a binding (or binding set) as requiring an explicit name.
- __dict__ = mappingproxy({'__module__': 'labgrid.binding', '__doc__': '\n Marks a binding (or binding set) as requiring an explicit name.\n ', '__init__': <function BindingMixin.NamedBinding.__init__>, '__repr__': <function BindingMixin.NamedBinding.__repr__>, '__dict__': <attribute '__dict__' of 'NamedBinding' objects>, '__weakref__': <attribute '__weakref__' of 'NamedBinding' objects>, '__annotations__': {}})
- __module__ = 'labgrid.binding'
- __weakref__
list of weak references to the object (if defined)
- __annotations__ = {'bindings': typing.Dict[str, typing.Any]}
- __attrs_attrs__ = (Attribute(name='target', 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='target'), Attribute(name='name', default=NOTHING, validator=<optional validator for <instance_of validator for type <class 'str'>> or 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='state', default=<BindingState.idle: 0>, 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='state'))
- __dict__ = mappingproxy({'__module__': 'labgrid.binding', '__annotations__': {'bindings': typing.Dict[str, typing.Any]}, '__doc__': '\n Handles the binding and activation of drivers and their supplying resources\n and drivers.\n\n One client can be bound to many suppliers, and one supplier can be bound by\n many clients.\n\n Conflicting access to one supplier can be avoided by deactivating\n conflicting clients before activation (using the resolve_conflicts\n callback).\n ', 'bindings': {}, '__attrs_post_init__': <function BindingMixin.__attrs_post_init__>, 'display_name': <property object>, 'on_supplier_bound': <function BindingMixin.on_supplier_bound>, 'on_client_bound': <function BindingMixin.on_client_bound>, 'on_activate': <function BindingMixin.on_activate>, 'on_deactivate': <function BindingMixin.on_deactivate>, 'resolve_conflicts': <function BindingMixin.resolve_conflicts>, 'get_bound_resources': <function BindingMixin.get_bound_resources>, 'check_active': <classmethod(<function BindingMixin.check_active>)>, 'check_bound': <classmethod(<function BindingMixin.check_bound>)>, 'NamedBinding': <class 'labgrid.binding.BindingMixin.NamedBinding'>, '__dict__': <attribute '__dict__' of 'BindingMixin' objects>, '__weakref__': <attribute '__weakref__' of 'BindingMixin' objects>, '__attrs_attrs__': (Attribute(name='target', 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='target'), Attribute(name='name', default=NOTHING, validator=<optional validator for <instance_of validator for type <class 'str'>> or 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='state', default=<BindingState.idle: 0>, 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='state')), '__repr__': <function BindingMixin.__repr__>, '__init__': <function BindingMixin.__init__>, '__match_args__': ('target', 'name')})
- __init__(target, name) None
Method generated by attrs for class BindingMixin.
- __match_args__ = ('target', 'name')
- __module__ = 'labgrid.binding'
- __repr__()
Method generated by attrs for class BindingMixin.
- __weakref__
list of weak references to the object (if defined)
labgrid.config module
Config convenience class
This class encapsulates access functions to the environment configuration
- class labgrid.config.Config(filename)[source]
Bases:
object
- resolve_path(path)[source]
Resolve an absolute path
- Parameters:
path (str) – path to resolve
- Returns:
the absolute path
- Return type:
str
- resolve_path_str_or_list(path)[source]
Resolves a single path or multiple paths. Always returns a list (containing a single or multiple resolved paths).
- Parameters:
path (str, list) – path(s) to resolve
- Returns:
absolute path(s
- Return type:
list
- Raises:
TypeError – if input is neither str nor list
- get_tool(tool)[source]
Retrieve an entry from the tools subkey
- Parameters:
tool (str) – the tool to retrieve the path for
- Returns:
path to the requested tools
- Return type:
str
- get_image_path(kind)[source]
Retrieve an entry from the images subkey
- Parameters:
kind (str) – the kind of the image to retrieve the path for
- Returns:
path to the image
- Return type:
str
- Raises:
KeyError – if the requested image can not be found in the configuration
- get_path(kind)[source]
Retrieve an entry from the paths subkey
- Parameters:
kind (str) – the type of path to retrieve the path for
- Returns:
path to the path
- Return type:
str
- Raises:
KeyError – if the requested image can not be found in the configuration
- get_option(name, default=None)[source]
Retrieve an entry from the options subkey
- Parameters:
name (str) – name of the option
default (any) – A default parameter in case the option can not be found
- Returns:
value of the option or default parameter
- Return type:
any
- Raises:
KeyError – if the requested image can not be found in the configuration
- set_option(name, value)[source]
Set an entry in the options subkey
- Parameters:
name (str) – name of the option
value (any) – the new value
- get_target_option(target, name, default=None)[source]
- Retrieve an entry from the options subkey under the specified target
subkey
- Parameters:
target (str) – name of the target
name (str) – name of the option
default (any) – A default parameter in case the option can not be found
- Returns:
value of the option or default parameter
- Return type:
any
- Raises:
KeyError – if the requested key can not be found in the configuration, or if the target can not be found in the configuration.
- set_target_option(target, name, value)[source]
Set an entry in the options subkey under the specified target subkey
- Parameters:
target (str) – name of the target
name (str) – name of the option
value (any) – the new value
- Raises:
KeyError – if the requested target can not be found in the configuration
- get_imports()[source]
Helper function that returns the list of all imports
- Returns:
List of files which should be imported
- Return type:
List
- get_paths()[source]
Helper function that returns the subdict of all paths
- Returns:
Dictionary containing all path definitions
- Return type:
Dict
- get_images()[source]
Helper function that returns the subdict of all images
- Returns:
Dictionary containing all image definitions
- Return type:
Dict
- __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'),)
- __dict__ = mappingproxy({'__module__': 'labgrid.config', '__attrs_post_init__': <function Config.__attrs_post_init__>, 'resolve_path': <function Config.resolve_path>, 'resolve_path_str_or_list': <function Config.resolve_path_str_or_list>, 'get_tool': <function Config.get_tool>, 'get_image_path': <function Config.get_image_path>, 'get_path': <function Config.get_path>, 'get_option': <function Config.get_option>, 'set_option': <function Config.set_option>, 'get_target_option': <function Config.get_target_option>, 'set_target_option': <function Config.set_target_option>, 'get_targets': <function Config.get_targets>, 'get_imports': <function Config.get_imports>, 'get_paths': <function Config.get_paths>, 'get_images': <function Config.get_images>, 'get_features': <function Config.get_features>, '__dict__': <attribute '__dict__' of 'Config' objects>, '__weakref__': <attribute '__weakref__' of 'Config' 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'),), '__repr__': <function Config.__repr__>, '__init__': <function Config.__init__>, '__match_args__': ('filename',)})
- __init__(filename) None
Method generated by attrs for class Config.
- __match_args__ = ('filename',)
- __module__ = 'labgrid.config'
- __repr__()
Method generated by attrs for class Config.
- __weakref__
list of weak references to the object (if defined)
labgrid.consoleloggingreporter module
- class labgrid.consoleloggingreporter.ConsoleLoggingReporter(logpath)[source]
Bases:
object
ConsoleLoggingReporter - Reporter that writes console log files
- Parameters:
logpath (str) – path to store the logfiles in
- instance = None
- __dict__ = mappingproxy({'__module__': 'labgrid.consoleloggingreporter', '__doc__': 'ConsoleLoggingReporter - Reporter that writes console log files\n\n Args:\n logpath (str): path to store the logfiles in\n ', 'instance': None, 'start': <classmethod(<function ConsoleLoggingReporter.start>)>, 'stop': <classmethod(<function ConsoleLoggingReporter.stop>)>, '__init__': <function ConsoleLoggingReporter.__init__>, '_stop': <function ConsoleLoggingReporter._stop>, 'get_logfile': <function ConsoleLoggingReporter.get_logfile>, 'notify': <function ConsoleLoggingReporter.notify>, '__dict__': <attribute '__dict__' of 'ConsoleLoggingReporter' objects>, '__weakref__': <attribute '__weakref__' of 'ConsoleLoggingReporter' objects>, '__annotations__': {}})
- __module__ = 'labgrid.consoleloggingreporter'
- __weakref__
list of weak references to the object (if defined)
labgrid.environment module
- class labgrid.environment.Environment(config_file='config.yaml', interact=<built-in function input>)[source]
Bases:
object
An environment encapsulates targets.
- get_target(role: str = 'main') Target | None [source]
Returns the specified target or None if not found.
Each target is initialized as needed.
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='config_file', default='config.yaml', 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='config_file'), Attribute(name='interact', default=<built-in function input>, validator=None, repr=False, 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='interact'))
- __dict__ = mappingproxy({'__module__': 'labgrid.environment', '__doc__': 'An environment encapsulates targets.', '__attrs_post_init__': <function Environment.__attrs_post_init__>, 'get_target': <function Environment.get_target>, 'get_features': <function Environment.get_features>, 'get_target_features': <function Environment.get_target_features>, 'cleanup': <function Environment.cleanup>, '__dict__': <attribute '__dict__' of 'Environment' objects>, '__weakref__': <attribute '__weakref__' of 'Environment' objects>, '__annotations__': {}, '__attrs_attrs__': (Attribute(name='config_file', default='config.yaml', 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='config_file'), Attribute(name='interact', default=<built-in function input>, validator=None, repr=False, 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='interact')), '__repr__': <function Environment.__repr__>, '__init__': <function Environment.__init__>, '__match_args__': ('config_file', 'interact')})
- __init__(config_file='config.yaml', interact=<built-in function input>) None
Method generated by attrs for class Environment.
- __match_args__ = ('config_file', 'interact')
- __module__ = 'labgrid.environment'
- __repr__()
Method generated by attrs for class Environment.
- __weakref__
list of weak references to the object (if defined)
labgrid.exceptions module
- exception labgrid.exceptions.NoConfigFoundError(msg)[source]
Bases:
Exception
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='msg', 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='msg'),)
- __init__(msg) None
Method generated by attrs for class NoConfigFoundError.
- __match_args__ = ('msg',)
- __module__ = 'labgrid.exceptions'
- __repr__()
Method generated by attrs for class NoConfigFoundError.
- __weakref__
list of weak references to the object (if defined)
- exception labgrid.exceptions.NoSupplierFoundError(msg, filter=None)[source]
Bases:
Exception
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='msg', 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='msg'), Attribute(name='filter', default=None, validator=<optional validator for <instance_of validator for type <class 'set'>> or 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='filter'))
- __init__(msg, filter=None) None
Method generated by attrs for class NoSupplierFoundError.
- __match_args__ = ('msg', 'filter')
- __module__ = 'labgrid.exceptions'
- __repr__()
Method generated by attrs for class NoSupplierFoundError.
- __weakref__
list of weak references to the object (if defined)
- exception labgrid.exceptions.InvalidConfigError(msg)[source]
Bases:
Exception
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='msg', 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='msg'),)
- __init__(msg) None
Method generated by attrs for class InvalidConfigError.
- __match_args__ = ('msg',)
- __module__ = 'labgrid.exceptions'
- __repr__()
Method generated by attrs for class InvalidConfigError.
- __weakref__
list of weak references to the object (if defined)
- exception labgrid.exceptions.NoDriverFoundError(msg, filter=None)[source]
Bases:
NoSupplierFoundError
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='msg', 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=True, on_setattr=None, alias='msg'), Attribute(name='filter', default=None, validator=<optional validator for <instance_of validator for type <class 'set'>> or 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='filter'))
- __init__(msg, filter=None) None
Method generated by attrs for class NoDriverFoundError.
- __match_args__ = ('msg', 'filter')
- __module__ = 'labgrid.exceptions'
- __repr__()
Method generated by attrs for class NoDriverFoundError.
- exception labgrid.exceptions.NoResourceFoundError(msg, filter=None, found=None)[source]
Bases:
NoSupplierFoundError
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='msg', 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=True, on_setattr=None, alias='msg'), Attribute(name='filter', default=None, validator=<optional validator for <instance_of validator for type <class 'set'>> or 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='filter'), Attribute(name='found', default=None, validator=<optional validator for <instance_of validator for type <class 'list'>> or 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='found'))
- __init__(msg, filter=None, found=None) None
Method generated by attrs for class NoResourceFoundError.
- __match_args__ = ('msg', 'filter', 'found')
- __module__ = 'labgrid.exceptions'
- __repr__()
Method generated by attrs for class NoResourceFoundError.
- exception labgrid.exceptions.NoStrategyFoundError(msg, filter=None)[source]
Bases:
NoSupplierFoundError
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='msg', 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=True, on_setattr=None, alias='msg'), Attribute(name='filter', default=None, validator=<optional validator for <instance_of validator for type <class 'set'>> or 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='filter'))
- __init__(msg, filter=None) None
Method generated by attrs for class NoStrategyFoundError.
- __match_args__ = ('msg', 'filter')
- __module__ = 'labgrid.exceptions'
- __repr__()
Method generated by attrs for class NoStrategyFoundError.
- exception labgrid.exceptions.RegistrationError(msg)[source]
Bases:
Exception
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='msg', 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='msg'),)
- __init__(msg) None
Method generated by attrs for class RegistrationError.
- __match_args__ = ('msg',)
- __module__ = 'labgrid.exceptions'
- __repr__()
Method generated by attrs for class RegistrationError.
- __weakref__
list of weak references to the object (if defined)
labgrid.factory module
- class labgrid.factory.TargetFactory[source]
Bases:
object
- reg_resource(cls)[source]
Register a resource with the factory.
Returns the class to allow using it as a decorator.
- reg_driver(cls)[source]
Register a driver with the factory.
Returns the class to allow using it as a decorator.
- __dict__ = mappingproxy({'__module__': 'labgrid.factory', '__init__': <function TargetFactory.__init__>, 'reg_resource': <function TargetFactory.reg_resource>, 'reg_driver': <function TargetFactory.reg_driver>, '_convert_to_named_list': <staticmethod(<function TargetFactory._convert_to_named_list>)>, 'normalize_config': <staticmethod(<function TargetFactory.normalize_config>)>, 'make_resource': <function TargetFactory.make_resource>, 'make_driver': <function TargetFactory.make_driver>, 'make_target': <function TargetFactory.make_target>, 'class_from_string': <function TargetFactory.class_from_string>, '_insert_into_all': <function TargetFactory._insert_into_all>, '__dict__': <attribute '__dict__' of 'TargetFactory' objects>, '__weakref__': <attribute '__weakref__' of 'TargetFactory' objects>, '__doc__': None, '__annotations__': {}})
- __module__ = 'labgrid.factory'
- __weakref__
list of weak references to the object (if defined)
- labgrid.factory.target_factory = <labgrid.factory.TargetFactory object>
Global TargetFactory instance
This instance is used to register Resource and Driver classes so that Targets can be created automatically from YAML files.
labgrid.logging module
- class labgrid.logging.StepFormatter(*args, indent=True, color=None, parent=None, **kwargs)[source]
Bases:
object
- __dict__ = mappingproxy({'__module__': 'labgrid.logging', '__init__': <function StepFormatter.__init__>, 'format': <function StepFormatter.format>, '__dict__': <attribute '__dict__' of 'StepFormatter' objects>, '__weakref__': <attribute '__weakref__' of 'StepFormatter' objects>, '__doc__': None, '__annotations__': {}})
- __module__ = 'labgrid.logging'
- __weakref__
list of weak references to the object (if defined)
- class labgrid.logging.SerialLoggingReporter(bufs=_Nothing.NOTHING, loggers=_Nothing.NOTHING, lastevent=None)[source]
Bases:
object
- __annotations__ = {}
- __attrs_attrs__ = (Attribute(name='bufs', 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='bufs'), Attribute(name='loggers', 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='loggers'), Attribute(name='lastevent', default=None, validator=<optional validator for <instance_of validator for type <class 'labgrid.step.StepEvent'>> or 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='lastevent'))
- __dict__ = mappingproxy({'__module__': 'labgrid.logging', '__attrs_post_init__': <function SerialLoggingReporter.__attrs_post_init__>, 'vt100_replace_cr_nl': <function SerialLoggingReporter.vt100_replace_cr_nl>, '_create_message': <function SerialLoggingReporter._create_message>, 'notify': <function SerialLoggingReporter.notify>, 'flush': <function SerialLoggingReporter.flush>, '__dict__': <attribute '__dict__' of 'SerialLoggingReporter' objects>, '__weakref__': <attribute '__weakref__' of 'SerialLoggingReporter' objects>, '__doc__': None, '__annotations__': {}, '__attrs_attrs__': (Attribute(name='bufs', 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='bufs'), Attribute(name='loggers', 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='loggers'), Attribute(name='lastevent', default=None, validator=<optional validator for <instance_of validator for type <class 'labgrid.step.StepEvent'>> or 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='lastevent')), '__repr__': <function SerialLoggingReporter.__repr__>, '__eq__': <function SerialLoggingReporter.__eq__>, '__ne__': <function SerialLoggingReporter.__ne__>, '__lt__': <function SerialLoggingReporter.__lt__>, '__le__': <function SerialLoggingReporter.__le__>, '__gt__': <function SerialLoggingReporter.__gt__>, '__ge__': <function SerialLoggingReporter.__ge__>, '__hash__': None, '__init__': <function SerialLoggingReporter.__init__>, '__match_args__': ('bufs', 'loggers', 'lastevent')})
- __eq__(other)
Method generated by attrs for class SerialLoggingReporter.
- __ge__(other)
Method generated by attrs for class SerialLoggingReporter.
- __gt__(other)
Method generated by attrs for class SerialLoggingReporter.
- __hash__ = None
- __init__(bufs=_Nothing.NOTHING, loggers=_Nothing.NOTHING, lastevent=None) None
Method generated by attrs for class SerialLoggingReporter.
- __le__(other)
Method generated by attrs for class SerialLoggingReporter.
- __lt__(other)
Method generated by attrs for class SerialLoggingReporter.
- __match_args__ = ('bufs', 'loggers', 'lastevent')
- __module__ = 'labgrid.logging'
- __ne__(other)
Method generated by attrs for class SerialLoggingReporter.
- __repr__()
Method generated by attrs for class SerialLoggingReporter.
- __weakref__
list of weak references to the object (if defined)
- class labgrid.logging.StepLogger[source]
Bases:
object
- __dict__ = mappingproxy({'__module__': 'labgrid.logging', '_started': False, '_logger': None, '_serial_logger': None, '_length_limit': 100, '__attrs_post_init__': <function StepLogger.__attrs_post_init__>, 'start': <classmethod(<function StepLogger.start>)>, 'stop': <classmethod(<function StepLogger.stop>)>, 'get_prefix': <classmethod(<function StepLogger.get_prefix>)>, 'format_arguments': <staticmethod(<function StepLogger.format_arguments>)>, 'format_duration': <staticmethod(<function StepLogger.format_duration>)>, 'format_result': <classmethod(<function StepLogger.format_result>)>, '_StepLogger__get_message': <classmethod(<function StepLogger.__get_message>)>, 'get_next_indent': <classmethod(<function StepLogger.get_next_indent>)>, 'notify': <classmethod(<function StepLogger.notify>)>, '__dict__': <attribute '__dict__' of 'StepLogger' objects>, '__weakref__': <attribute '__weakref__' of 'StepLogger' objects>, '__doc__': None, '__annotations__': {}})
- __module__ = 'labgrid.logging'
- __weakref__
list of weak references to the object (if defined)
labgrid.step module
- class labgrid.step.Steps[source]
Bases:
object
- __dict__ = mappingproxy({'__module__': 'labgrid.step', '__init__': <function Steps.__init__>, 'get_current': <function Steps.get_current>, 'get_new': <function Steps.get_new>, 'push': <function Steps.push>, 'pop': <function Steps.pop>, 'subscribe': <function Steps.subscribe>, 'unsubscribe': <function Steps.unsubscribe>, 'notify': <function Steps.notify>, '__dict__': <attribute '__dict__' of 'Steps' objects>, '__weakref__': <attribute '__weakref__' of 'Steps' objects>, '__doc__': None, '__annotations__': {}})
- __module__ = 'labgrid.step'
- __weakref__
list of weak references to the object (if defined)
- class labgrid.step.StepEvent(step, data, *, resource=None, stream=False)[source]
Bases:
object
- property age
- __dict__ = mappingproxy({'__module__': 'labgrid.step', '__init__': <function StepEvent.__init__>, '__str__': <function StepEvent.__str__>, '__setitem__': <function StepEvent.__setitem__>, '_invalidate': <function StepEvent._invalidate>, 'merge': <function StepEvent.merge>, 'age': <property object>, '__dict__': <attribute '__dict__' of 'StepEvent' objects>, '__weakref__': <attribute '__weakref__' of 'StepEvent' objects>, '__doc__': None, '__annotations__': {}})
- __module__ = 'labgrid.step'
- __weakref__
list of weak references to the object (if defined)
- class labgrid.step.Step(title, level, tag, source, sourceinfo)[source]
Bases:
object
- property duration
- property status
- property is_active
- property is_done
- __dict__ = mappingproxy({'__module__': 'labgrid.step', '__init__': <function Step.__init__>, '__repr__': <function Step.__repr__>, 'duration': <property object>, 'status': <property object>, 'is_active': <property object>, 'is_done': <property object>, '_notify': <function Step._notify>, 'start': <function Step.start>, 'skip': <function Step.skip>, 'stop': <function Step.stop>, '__del__': <function Step.__del__>, '__dict__': <attribute '__dict__' of 'Step' objects>, '__weakref__': <attribute '__weakref__' of 'Step' objects>, '__doc__': None, '__annotations__': {}})
- __module__ = 'labgrid.step'
- __weakref__
list of weak references to the object (if defined)
labgrid.stepreporter module
- class labgrid.stepreporter.StepReporter[source]
Bases:
object
- __dict__ = mappingproxy({'__module__': 'labgrid.stepreporter', '_started': False, '__init__': <function StepReporter.__init__>, 'start': <classmethod(<function StepReporter.start>)>, 'stop': <classmethod(<function StepReporter.stop>)>, 'notify': <staticmethod(<function StepReporter.notify>)>, '__dict__': <attribute '__dict__' of 'StepReporter' objects>, '__weakref__': <attribute '__weakref__' of 'StepReporter' objects>, '__doc__': None, '__annotations__': {}})
- __module__ = 'labgrid.stepreporter'
- __weakref__
list of weak references to the object (if defined)
labgrid.target module
- class labgrid.target.Target(name, env=None)[source]
Bases:
object
- update_resources()[source]
Iterate over all relevant resources and deactivate any active but unavailable resources.
- await_resources(resources, timeout=None, avail=True)[source]
Poll the given resources and wait until they are (un-)available.
- Parameters:
resources (List) – the resources to poll
timeout (float) – optional timeout
avail (bool) – optionally wait until the resources are unavailable with avail=False
- get_resource(cls, *, name=None, wait_avail=True)[source]
Helper function to get a resource of the target. Returns the first valid resource found, otherwise a NoResourceFoundError is raised.
Arguments: cls – resource-class to return as a resource name – optional name to use as a filter wait_avail – wait for the resource to become available (default True)
- get_active_driver(cls, *, name=None, resource=None)[source]
Helper function to get the active driver of the target. Returns the active driver found, otherwise None.
Arguments: cls – driver-class to return as a resource name – optional name to use as a filter resource – optional resource to use as a filter
- get_driver(cls, *, name=None, resource=None, activate=True)[source]
Helper function to get a driver of the target. Returns the first valid driver found, otherwise None.
Arguments: cls – driver-class to return as a resource name – optional name to use as a filter resource – optional resource to use as a filter activate – activate the driver (default True)
- get_strategy()[source]
Helper function to get the strategy of the target.
Returns the Strategy, if exactly one exists and raises a NoStrategyFoundError otherwise.
- __getitem__(key)[source]
Syntactic sugar to access drivers by class (optionally filtered by name).
>>> from labgrid import Target >>> from labgrid.driver.fake import FakeConsoleDriver >>> >>> target = Target('main') >>> console = FakeConsoleDriver(target, 'console') >>> target.activate(console) >>> target[FakeConsoleDriver] FakeConsoleDriver(target=Target(name='main', env=None), name='console', state=<BindingState.active: 2>, txdelay=0.0) >>> target[FakeConsoleDriver, 'console'] FakeConsoleDriver(target=Target(name='main', env=None), name='console', state=<BindingState.active: 2>, txdelay=0.0)
- bind_driver(client)[source]
Bind the driver to all suppliers (resources and other drivers).
Currently, we only support binding all suppliers at once.
- activate(client, name=None)[source]
Activate the client by activating all bound suppliers. This may require deactivating other clients.
- deactivate(client, name=None)[source]
Recursively deactivate the client’s clients and itself.
This is needed to ensure that no client has an inactive supplier.
Returns the list of all objects that were deactivated
- export()[source]
Export information from drivers.
All drivers are deactivated before being exported, unless their skip_deactivate_on_export property is true.
The Strategy can decide for which driver the export method is called and with which name. Otherwise, all drivers are exported.
- __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='env', 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='env'))
- __dict__ = mappingproxy({'__module__': 'labgrid.target', '__attrs_post_init__': <function Target.__attrs_post_init__>, 'interact': <function Target.interact>, 'update_resources': <function Target.update_resources>, 'await_resources': <function Target.await_resources>, 'get_resource': <function Target.get_resource>, '_get_driver': <function Target._get_driver>, 'get_active_driver': <function Target.get_active_driver>, 'get_driver': <function Target.get_driver>, 'get_strategy': <function Target.get_strategy>, '__getitem__': <function Target.__getitem__>, 'set_binding_map': <function Target.set_binding_map>, 'bind_resource': <function Target.bind_resource>, 'bind_driver': <function Target.bind_driver>, 'bind': <function Target.bind>, 'activate': <function Target.activate>, 'deactivate': <function Target.deactivate>, 'deactivate_all_drivers': <function Target.deactivate_all_drivers>, '_atexit_cleanup': <function Target._atexit_cleanup>, 'export': <function Target.export>, 'cleanup': <function Target.cleanup>, '__dict__': <attribute '__dict__' of 'Target' objects>, '__weakref__': <attribute '__weakref__' of 'Target' 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='env', 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='env')), '__repr__': <function Target.__repr__>, '__init__': <function Target.__init__>, '__match_args__': ('name', 'env')})
- __init__(name, env=None) None
Method generated by attrs for class Target.
- __match_args__ = ('name', 'env')
- __module__ = 'labgrid.target'
- __repr__()
Method generated by attrs for class Target.
- __weakref__
list of weak references to the object (if defined)