OSDN Git Service

python/aqmp: add QMP Message format
authorJohn Snow <jsnow@redhat.com>
Wed, 15 Sep 2021 16:29:41 +0000 (12:29 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 27 Sep 2021 16:10:29 +0000 (12:10 -0400)
commit08f98a22313f20a3851c9ae67dc0e8f2b931e3b3
treeef575068db6714cdf4a3c4d04b1218d0df5557ad
parent762bd4d7a745b3b19c4ffd3eaf4714a6961c4a11
python/aqmp: add QMP Message format

The Message class is here primarily to serve as a solid type to use for
mypy static typing for unambiguous annotation and documentation.

We can also stuff JSON serialization and deserialization into this class
itself so it can be re-used even outside this infrastructure.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20210915162955.333025-14-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/aqmp/__init__.py
python/qemu/aqmp/message.py [new file with mode: 0644]