[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 23/27] python/aqmp: add scary message
From: |
John Snow |
Subject: |
[PATCH v4 23/27] python/aqmp: add scary message |
Date: |
Wed, 15 Sep 2021 12:29:51 -0400 |
Add a warning whenever AQMP is used to steer people gently away from
using it for the time-being.
Signed-off-by: John Snow <jsnow@redhat.com>
---
python/qemu/aqmp/__init__.py | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/python/qemu/aqmp/__init__.py b/python/qemu/aqmp/__init__.py
index 4b7df53e00..ab1782999c 100644
--- a/python/qemu/aqmp/__init__.py
+++ b/python/qemu/aqmp/__init__.py
@@ -21,6 +21,8 @@
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
+import warnings
+
from .error import AQMPError
from .events import EventListener
from .message import Message
@@ -28,6 +30,18 @@
from .qmp_client import ExecInterruptedError, ExecuteError, QMPClient
+_WMSG = """
+
+The Asynchronous QMP library is currently in development and its API
+should be considered highly fluid and subject to change. It should
+not be used by any other scripts checked into the QEMU tree.
+
+Proceed with caution!
+"""
+
+warnings.warn(_WMSG, FutureWarning)
+
+
# The order of these fields impact the Sphinx documentation order.
__all__ = (
# Classes, most to least important
--
2.31.1
- [PATCH v4 12/27] python/aqmp: add AsyncProtocol._readline() method, (continued)
- [PATCH v4 12/27] python/aqmp: add AsyncProtocol._readline() method, John Snow, 2021/09/15
- [PATCH v4 13/27] python/aqmp: add QMP Message format, John Snow, 2021/09/15
- [PATCH v4 14/27] python/aqmp: add well-known QMP object models, John Snow, 2021/09/15
- [PATCH v4 16/27] python/pylint: disable too-many-function-args, John Snow, 2021/09/15
- [PATCH v4 17/27] python/aqmp: add QMP protocol support, John Snow, 2021/09/15
- [PATCH v4 19/27] python/aqmp: Add message routing to QMP protocol, John Snow, 2021/09/15
- [PATCH v4 20/27] python/aqmp: add execute() interfaces, John Snow, 2021/09/15
- [PATCH v4 15/27] python/aqmp: add QMP event support, John Snow, 2021/09/15
- [PATCH v4 18/27] python/pylint: disable no-member check, John Snow, 2021/09/15
- [PATCH v4 21/27] python/aqmp: add _raw() execution interface, John Snow, 2021/09/15
- [PATCH v4 23/27] python/aqmp: add scary message,
John Snow <=
- [PATCH v4 22/27] python/aqmp: add asyncio_run compatibility wrapper, John Snow, 2021/09/15
- [PATCH v4 26/27] python/aqmp: add LineProtocol tests, John Snow, 2021/09/15
- [PATCH v4 27/27] python/aqmp: Add Coverage.py support, John Snow, 2021/09/15
- [PATCH v4 24/27] python: bump avocado to v90.0, John Snow, 2021/09/15
- [PATCH v4 25/27] python/aqmp: add AsyncProtocol unit tests, John Snow, 2021/09/15
- Re: [PATCH v4 00/27] python: introduce Asynchronous QMP package, John Snow, 2021/09/20