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.eth008 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.poe_mib 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.tinycontrol module
- labgrid.driver.power.tplink module
- labgrid.driver.power.ubus module
- labgrid.driver.usbtmc package
- labgrid.driver.power package
- Submodules
- labgrid.driver.bareboxdriver module
BareboxDriverBareboxDriver.bindingsBareboxDriver.__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
ConsoleExpectMixinConsoleExpectMixin.__attrs_post_init__()ConsoleExpectMixin.read()ConsoleExpectMixin.write()ConsoleExpectMixin.sendline()ConsoleExpectMixin.sendcontrol()ConsoleExpectMixin.expect()ConsoleExpectMixin.settle()ConsoleExpectMixin.resolve_conflicts()ConsoleExpectMixin.__dict__ConsoleExpectMixin.__module__ConsoleExpectMixin.__weakref__
- labgrid.driver.dediprogflashdriver module
DediprogFlashDriverDediprogFlashDriver.bindingsDediprogFlashDriver.__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
DeditecRelaisDriverDeditecRelaisDriver.bindingsDeditecRelaisDriver.__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
DockerDriverDockerDriver.bindingsDockerDriver.__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
ExternalConsoleDriverExternalConsoleDriver.__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
FakeConsoleDriverFakeConsoleDriver.__attrs_post_init__()FakeConsoleDriver.open()FakeConsoleDriver.close()FakeConsoleDriver.__abstractmethods__FakeConsoleDriver.__annotations__FakeConsoleDriver.__attrs_attrs__FakeConsoleDriver.__init__()FakeConsoleDriver.__match_args__FakeConsoleDriver.__module__FakeConsoleDriver.__repr__()
FakeCommandDriverFakeCommandDriver.run()FakeCommandDriver.run_check()FakeCommandDriver.get_status()FakeCommandDriver.__abstractmethods__FakeCommandDriver.__annotations__FakeCommandDriver.__attrs_attrs__FakeCommandDriver.__init__()FakeCommandDriver.__match_args__FakeCommandDriver.__module__FakeCommandDriver.__repr__()
FakeFileTransferDriverFakeFileTransferDriver.get()FakeFileTransferDriver.put()FakeFileTransferDriver.__abstractmethods__FakeFileTransferDriver.__annotations__FakeFileTransferDriver.__attrs_attrs__FakeFileTransferDriver.__init__()FakeFileTransferDriver.__match_args__FakeFileTransferDriver.__module__FakeFileTransferDriver.__repr__()
FakePowerDriver
- labgrid.driver.fastbootdriver module
AndroidFastbootDriverAndroidFastbootDriver.bindingsAndroidFastbootDriver.__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
FileDigitalOutputDriverFileDigitalOutputDriver.__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
FlashromDriverFlashromDriver.bindingsFlashromDriver.__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
FlashScriptDriverFlashScriptDriver.bindingsFlashScriptDriver.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
GpioDigitalOutputDriverGpioDigitalOutputDriver.bindingsGpioDigitalOutputDriver.__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
HttpDigitalOutputDriverHttpDigitalOutputDriver.bindingsHttpDigitalOutputDriver.__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
LXAIOBusPIODriverLXAIOBusPIODriver.bindingsLXAIOBusPIODriver.__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
ManualSwitchDriverManualSwitchDriver.__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
ModbusCoilDriverModbusCoilDriver.bindingsModbusCoilDriver.__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
ModbusRTUDriverModbusRTUDriver.bindingsModbusRTUDriver.__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
MQTTErrorTasmotaPowerDriverTasmotaPowerDriver.bindingsTasmotaPowerDriver.__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
NetworkInterfaceDriverNetworkInterfaceDriver.bindingsNetworkInterfaceDriver.__attrs_post_init__()NetworkInterfaceDriver.on_activate()NetworkInterfaceDriver.on_deactivate()NetworkInterfaceDriver.skip_deactivate_on_exportNetworkInterfaceDriver.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
OneWirePIODriverOneWirePIODriver.bindingsOneWirePIODriver.__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
OpenOCDDriverOpenOCDDriver.bindingsOpenOCDDriver.__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
PowerResetMixinPowerResetMixin.prioritiesPowerResetMixin.__attrs_post_init__()PowerResetMixin.reset()PowerResetMixin.__abstractmethods__PowerResetMixin.__annotations__PowerResetMixin.__attrs_attrs__PowerResetMixin.__init__()PowerResetMixin.__match_args__PowerResetMixin.__module__PowerResetMixin.__repr__()
ManualPowerDriverSiSPMPowerDriverSiSPMPowerDriver.bindingsSiSPMPowerDriver.__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__()
ExternalPowerDriverExternalPowerDriver.on()ExternalPowerDriver.off()ExternalPowerDriver.cycle()ExternalPowerDriver.__abstractmethods__ExternalPowerDriver.__annotations__ExternalPowerDriver.__attrs_attrs__ExternalPowerDriver.__init__()ExternalPowerDriver.__match_args__ExternalPowerDriver.__module__ExternalPowerDriver.__repr__()
NetworkPowerDriverNetworkPowerDriver.bindingsNetworkPowerDriver.__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__()
DigitalOutputPowerDriverDigitalOutputPowerDriver.bindingsDigitalOutputPowerDriver.__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__()
YKUSHPowerDriverYKUSHPowerDriver.bindingsYKUSHPowerDriver.__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__()
USBPowerDriverUSBPowerDriver.bindingsUSBPowerDriver.__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__()
PDUDaemonDriverPDUDaemonDriver.bindingsPDUDaemonDriver.__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
QEMUDriverQEMUDriver.__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.rawnetworkinterfacedriver module
RawNetworkInterfaceDriverRawNetworkInterfaceDriver.bindingsRawNetworkInterfaceDriver.__attrs_post_init__()RawNetworkInterfaceDriver.start_record()RawNetworkInterfaceDriver.stop_record()RawNetworkInterfaceDriver.record()RawNetworkInterfaceDriver.start_replay()RawNetworkInterfaceDriver.stop_replay()RawNetworkInterfaceDriver.replay()RawNetworkInterfaceDriver.get_statistics()RawNetworkInterfaceDriver.get_address()RawNetworkInterfaceDriver.__annotations__RawNetworkInterfaceDriver.__attrs_attrs__RawNetworkInterfaceDriver.__init__()RawNetworkInterfaceDriver.__match_args__RawNetworkInterfaceDriver.__module__RawNetworkInterfaceDriver.__repr__()
- labgrid.driver.resetdriver module
DigitalOutputResetDriverDigitalOutputResetDriver.bindingsDigitalOutputResetDriver.__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
SerialPortDigitalOutputDriverSerialPortDigitalOutputDriver.bindingsSerialPortDigitalOutputDriver.__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
SerialDriverSerialDriver.bindingsSerialDriver.__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
ShellDriverShellDriver.bindingsShellDriver.__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
SigrokCommonSigrokDriverSigrokPowerDriverSigrokPowerDriver.bindingsSigrokPowerDriver.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__()
SigrokDmmDriverSigrokDmmDriver.bindingsSigrokDmmDriver.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
SSHDriverSSHDriver.bindingsSSHDriver.prioritiesSSHDriver.__attrs_post_init__()SSHDriver.on_activate()SSHDriver.on_deactivate()SSHDriver.skip_deactivate_on_exportSSHDriver.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
UBootDriverUBootDriver.bindingsUBootDriver.__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
USBAudioInputDriverUSBAudioInputDriver.bindingsUSBAudioInputDriver.__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
HIDRelayDriverHIDRelayDriver.bindingsHIDRelayDriver.__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
MXSUSBDriverMXSUSBDriver.bindingsMXSUSBDriver.__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__()
IMXUSBDriverIMXUSBDriver.bindingsIMXUSBDriver.__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__()
RKUSBDriverRKUSBDriver.bindingsRKUSBDriver.__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__()
UUUDriverBDIMXUSBDriverBDIMXUSBDriver.bindingsBDIMXUSBDriver.__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
ModeUSBStorageDriverUSBStorageDriver.bindingsUSBStorageDriver.WAIT_FOR_MEDIUM_TIMEOUTUSBStorageDriver.WAIT_FOR_MEDIUM_SLEEPUSBStorageDriver.MOUNT_RETRIESUSBStorageDriver.__attrs_post_init__()USBStorageDriver.on_activate()USBStorageDriver.on_deactivate()USBStorageDriver.write_files()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
USBTMCDriverUSBTMCDriver.bindingsUSBTMCDriver.__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
USBVideoDriverUSBVideoDriver.bindingsUSBVideoDriver.__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
ResourceEntryResourceEntry.__attrs_post_init__()ResourceEntry.acquiredResourceEntry.availResourceEntry.clsResourceEntry.paramsResourceEntry.argsResourceEntry.extraResourceEntry.asdict()ResourceEntry.update()ResourceEntry.acquire()ResourceEntry.release()ResourceEntry.__attrs_attrs__ResourceEntry.__dict__ResourceEntry.__init__()ResourceEntry.__match_args__ResourceEntry.__module__ResourceEntry.__repr__()ResourceEntry.__weakref__
ResourceMatchResourceMatch.fromstr()ResourceMatch.__repr__()ResourceMatch.__str__()ResourceMatch.ismatch()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__
PlaceReservationStateReservationenable_tcp_nodelay()monkey_patch_max_msg_payload_size_ws_option()
- labgrid.remote.config module
- labgrid.remote.coordinator module
- labgrid.remote.exporter module
ExporterErrorBrokenResourceErrorlog_subprocess_kernel_stack()ResourceExportResourceExport.__attrs_post_init__()ResourceExport.brokenResourceExport.start()ResourceExport.stop()ResourceExport.poll()ResourceExport.acquire()ResourceExport.release()ResourceExport.__annotations__ResourceExport.__attrs_attrs__ResourceExport.__init__()ResourceExport.__match_args__ResourceExport.__module__ResourceExport.__repr__()
SerialPortExportNetworkInterfaceExportUSBGenericExportUSBSigrokExportUSBSDMuxExportUSBSDWireExportUSBAudioInputExportSiSPMPowerPortExportUSBPowerPortExportUSBDeditecRelaisExportUSBHIDRelayExportUSBFlashableExportUSBGenericRemoteExportProviderGenericExportEthernetPortExportEthernetPortExport.__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__()
GPIOSysFSExportNetworkServiceExportNetworkServiceExport.__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__()
HTTPVideoStreamExportHTTPVideoStreamExport.__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__()
LXAIOBusNodeExportAndroidNetFastbootExportYKUSHPowerPortExportmain()
- labgrid.remote.scheduler module
- labgrid.resource package
- Submodules
- labgrid.resource.base module
SerialPortNetworkInterfaceEthernetPortEthernetPort.__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
ResourceResource.__attrs_post_init__()Resource.command_prefixResource.wrap_command()Resource.parentResource.get_managed_parent()Resource.poll()Resource.get_bound_resources()Resource.__annotations__Resource.__attrs_attrs__Resource.__init__()Resource.__match_args__Resource.__module__Resource.__repr__()
NetworkResourceResourceManagerResourceManager.instancesResourceManager.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__
ManagedResourceManagedResource.manager_clsManagedResource.__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
DockerConstantsDockerManagerDockerDaemonDockerDaemon.docker_daemon_urlDockerDaemon.manager_clsDockerDaemon.__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
SNMPSwitchSNMPSwitch.__attrs_post_init__()SNMPSwitch.update()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__
EthernetPortManagerEthernetPortManager.__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__()
SNMPEthernetPortSNMPEthernetPort.manager_clsSNMPEthernetPort.__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
RemotePlaceManagerRemotePlaceRemoteUSBResourceRemoteAndroidUSBFastbootNetworkAndroidFastbootRemoteAndroidNetFastbootNetworkDFUDeviceNetworkIMXUSBLoaderNetworkMXSUSBLoaderNetworkRKUSBLoaderNetworkAlteraUSBBlasterNetworkSigrokUSBDeviceNetworkSigrokUSBSerialDeviceNetworkSigrokUSBSerialDevice.__attrs_post_init__()NetworkSigrokUSBSerialDevice.__annotations__NetworkSigrokUSBSerialDevice.__attrs_attrs__NetworkSigrokUSBSerialDevice.__init__()NetworkSigrokUSBSerialDevice.__match_args__NetworkSigrokUSBSerialDevice.__module__NetworkSigrokUSBSerialDevice.__repr__()
NetworkUSBMassStorageNetworkUSBSDMuxDeviceNetworkUSBSDWireDeviceNetworkSiSPMPowerPortNetworkUSBPowerPortNetworkUSBVideoNetworkUSBAudioInputNetworkUSBTMCNetworkUSBDebuggerNetworkDeditecRelais8NetworkHIDRelayNetworkSysfsGPIONetworkLXAIOBusNodeNetworkLXAIOBusPIONetworkLXAUSBMuxNetworkUSBFlashableDeviceNetworkMQTTResourceRemoteNetworkInterfaceRemoteBaseProviderRemoteTFTPProviderRemoteNFSProviderRemoteHTTPProvider
- labgrid.resource.serialport module
- labgrid.resource.sigrok module
- labgrid.resource.suggest module
- labgrid.resource.udev module
UdevManagerUSBResourceUSBResource.manager_clsUSBResource.__attrs_post_init__()USBResource.filter_match()USBResource.suggest_match()USBResource.try_match()USBResource.update()USBResource.busnumUSBResource.devnumUSBResource.pathUSBResource.vendor_idUSBResource.model_idUSBResource.read_attr()USBResource.__annotations__USBResource.__attrs_attrs__USBResource.__init__()USBResource.__match_args__USBResource.__module__USBResource.__repr__()
USBSerialPortUSBMassStorageIMXUSBLoaderRKUSBLoaderMXSUSBLoaderAndroidUSBFastbootAndroidFastbootDFUDeviceUSBNetworkInterfaceAlteraUSBBlasterSigrokUSBDeviceSigrokUSBSerialDeviceUSBSDWireDeviceUSBSDWireDevice.__attrs_post_init__()USBSDWireDevice.availUSBSDWireDevice.poll()USBSDWireDevice.update()USBSDWireDevice.pathUSBSDWireDevice.__annotations__USBSDWireDevice.__attrs_attrs__USBSDWireDevice.__init__()USBSDWireDevice.__match_args__USBSDWireDevice.__module__USBSDWireDevice.__repr__()
USBSDMuxDeviceUSBPowerPortSiSPMPowerPortUSBVideoUSBAudioInputUSBTMCDeditecRelais8HIDRelayUSBFlashableDeviceLXAUSBMuxUSBDebuggerMatchedSysfsGPIOMatchedSysfsGPIO.indexMatchedSysfsGPIO.__annotations__MatchedSysfsGPIO.__attrs_attrs__MatchedSysfsGPIO.__attrs_post_init__()MatchedSysfsGPIO.__init__()MatchedSysfsGPIO.__match_args__MatchedSysfsGPIO.__module__MatchedSysfsGPIO.__repr__()MatchedSysfsGPIO.filter_match()MatchedSysfsGPIO.update()
- labgrid.resource.xenamanager module
- labgrid.resource.ykushpowerport module
- labgrid.strategy package
- Submodules
- labgrid.strategy.bareboxstrategy module
- labgrid.strategy.common module
StrategyErrorStrategyStrategy.__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()ProcessWrapperProcessWrapper.loglevelProcessWrapper.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.__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
ManagedFileErrorManagedFileManagedFile.__attrs_post_init__()ManagedFile.sync_to_resource()ManagedFile.get_remote_path()ManagedFile.get_hash()ManagedFile.get_user_cache_path()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
SSHConnectionSSHConnection.__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.__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__
ForwardErrorForwardError.__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- __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
- exception labgrid.binding.BindingError(msg)[source]
Bases:
Exception- __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
- 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:
objectHandles 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:
objectMarks 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
- __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
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
- __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, '__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',), '__annotations__': {}})
- __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
labgrid.consoleloggingreporter module
- class labgrid.consoleloggingreporter.ConsoleLoggingReporter(logpath)[source]
Bases:
objectConsoleLoggingReporter - 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
labgrid.environment module
- class labgrid.environment.Environment(config_file='config.yaml', interact=<built-in function input>)[source]
Bases:
objectAn 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.
- __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>, '__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'), '__annotations__': {}})
- __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
labgrid.exceptions module
- exception labgrid.exceptions.NoConfigFoundError(msg)[source]
Bases:
Exception- __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
- exception labgrid.exceptions.NoSupplierFoundError(msg, filter=None)[source]
Bases:
Exception- __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
- exception labgrid.exceptions.InvalidConfigError(msg)[source]
Bases:
Exception- __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
- 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- __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
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
- 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
- class labgrid.logging.SerialLoggingReporter(bufs=NOTHING, loggers=NOTHING, lastevent=None)[source]
Bases:
object- __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, '__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'), '__annotations__': {}})
- __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, loggers=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
- 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
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
- 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
- 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
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
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.
- __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, '__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'), '__annotations__': {}})
- __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