RFC RFC: Asynchronous QMP Draft
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest7 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | util: asyncio-related helpersutil.py | +87 | 0 replies | |
| 2/7 | error: Error classes and so on.error.py | +163 | 0 replies | |
| 3/7 | protocol: generic async message-based protocol loopprotocol.py | +704 | 3 replies | |
| 4/7 | message: add QMP Message typemessage.py | +196 | 2 replies | |
| 5/7 | models: Add well-known QMP objectsmodels.py | +177 | 0 replies | |
| 6/7 | qmp_protocol: add QMP client implementationqmp_protocol.py | +420 | 3 replies | |
| 7/7 | linter config.flake8 pylintrc | +55 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH RFC 0/7] RFC: Asynchronous QMP Draft
(Does not apply to the QEMU tree; this is against a blank repository.)
Hi! This is a Draft RFC for an asyncio-based Python library that implements a QMP client. The intent is to eventually publish this library directly to PyPI, so the design focus of this library is to be "useful" instead of providing as low-level an interface as possible.
I am sending this to solicit general, high-level design feedback on the overal layout and approach. Many minor details are still left to be implemented, and a lot of the docstrings and documentation need to be audited to make sure they still apply as I've shuffled things around a lot in the course of development.
There are some pretty notable things missing still; in particular I need to develop an Event API (there is a tiny stub added as a hack, but it's very simplistic), and I also need to develop a sync bridge so that this library could be used in existing iotests if we eventually expect to replace the old QMP library with this one.
Scattered throughout these files are "RFC" comments and other "FIXME" and "TODO" items where I've tried to stub out some of the things I am still unsure of.
Thanks!
John Snow (7):
util: asyncio-related helpers
error: Error classes and so on.
protocol: generic async message-based protocol loop
message: add QMP Message type
models: Add well-known QMP objects
qmp_protocol: add QMP client implementation linter config
.flake8 | 2 + error.py | 163 +++++++++++ message.py | 196 ++++++++++++++ models.py | 177 ++++++++++++ protocol.py | 704 ++++++++++++++++++++++++++++++++++++++++++++++++ pylintrc | 53 ++++ qmp_protocol.py | 420 +++++++++++++++++++++++++++++ util.py | 87 ++++++ 8 files changed, 1802 insertions(+) create mode 100644 .flake8 create mode 100644 error.py create mode 100644 message.py create mode 100644 models.py create mode 100644 protocol.py create mode 100644 pylintrc create mode 100644 qmp_protocol.py create mode 100644 util.py
Signature · 1 line
2.30.2