]> Git Repo - qemu.git/blob - python/qemu/qmp/__init__.py
works with less than base ISA qemu-system-riscv32 -M virt -bios none -kernel output...
[qemu.git] / python / qemu / qmp / __init__.py
1 """
2 QEMU Monitor Protocol (QMP) development library & tooling.
3
4 This package provides a fairly low-level class for communicating
5 asynchronously with QMP protocol servers, as implemented by QEMU, the
6 QEMU Guest Agent, and the QEMU Storage Daemon.
7
8 `QMPClient` provides the main functionality of this package. All errors
9 raised by this library derive from `QMPError`, see `qmp.error` for
10 additional detail. See `qmp.events` for an in-depth tutorial on
11 managing QMP events.
12 """
13
14 # Copyright (C) 2020-2022 John Snow for Red Hat, Inc.
15 #
16 # Authors:
17 #  John Snow <[email protected]>
18 #
19 # Based on earlier work by Luiz Capitulino <[email protected]>.
20 #
21 # This work is licensed under the terms of the GNU LGPL, version 2 or
22 # later. See the COPYING file in the top-level directory.
23
24 import logging
25
26 from .error import QMPError
27 from .events import EventListener
28 from .message import Message
29 from .protocol import (
30     ConnectError,
31     Runstate,
32     SocketAddrT,
33     StateError,
34 )
35 from .qmp_client import ExecInterruptedError, ExecuteError, QMPClient
36
37
38 # Suppress logging unless an application engages it.
39 logging.getLogger('qemu.qmp').addHandler(logging.NullHandler())
40
41
42 # The order of these fields impact the Sphinx documentation order.
43 __all__ = (
44     # Classes, most to least important
45     'QMPClient',
46     'Message',
47     'EventListener',
48     'Runstate',
49
50     # Exceptions, most generic to most explicit
51     'QMPError',
52     'StateError',
53     'ConnectError',
54     'ExecuteError',
55     'ExecInterruptedError',
56
57     # Type aliases
58     'SocketAddrT',
59 )
This page took 0.027781 seconds and 4 git commands to generate.