qmp is a Python client library for the QEMU Machine Protocol (QMP), used to interact with QEMU virtual machines programmatically. The current version is 1.1.0, supported on Python >=3.6. The library is mature but sees infrequent releases.
pip install qmpVerified import paths — ran on the pinned version, not inferred.
Connect to a running QEMU instance via a Unix socket and execute a QMP command.
Use Python >=3.6.
Use connect() with a timeout (e.g., via socket timeout) or implement async connect; qmp does not natively support timeouts.
Always handle 'error' key in response dictionary, or use qmp.command() which raises QMPError on failure (but only for QMP-level errors).
Run `pip install qmp` and use `from qmp import QEMUMonitorProtocol`.
Use `from qmp import QEMUMonitorProtocol` directly.
Verify the socket path (e.g., check QEMU startup logs) and ensure QEMU is started with '-qmp unix:/tmp/qemu.sock,server,nowait'.
No dependency data recorded yet.