{"library":"qmp","title":"QEMU Machine Protocol (QMP) Client","description":"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.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install qmp"],"cli":null},"imports":["from qmp import QEMUMonitorProtocol"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from qmp import QEMUMonitorProtocol\n\n# Connect to QEMU over a Unix socket\nsock_path = '/tmp/qemu.sock'  # or os.environ.get('QEMU_SOCK', '/tmp/qemu.sock')\ntry:\n    qmp = QEMUMonitorProtocol(sock_path)\n    qmp.connect()\n    # Send a QMP command\n    result = qmp.command('query-status')\n    print(result)\nfinally:\n    qmp.close()","lang":"python","description":"Connect to a running QEMU instance via a Unix socket and execute a QMP command.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}