From c950460235d479ad28c0b4f16c41e1c39bcabe41 Mon Sep 17 00:00:00 2001 From: adk23333 <2633103794@qq.com> Date: Tue, 19 Dec 2023 00:09:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=9A=E7=94=A8=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E5=87=BD=E6=95=B0=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unit.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 unit.py diff --git a/unit.py b/unit.py new file mode 100644 index 0000000..bf742e1 --- /dev/null +++ b/unit.py @@ -0,0 +1,7 @@ +from typing import Any + +from sanic.log import Colors + + +def sio_log_format(text: str, data: Any): + return f"{Colors.GREEN}{text} {Colors.PURPLE}{data}{Colors.END}"