19 lines
378 B
Python
19 lines
378 B
Python
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}"
|
|
|
|
|
|
def cas_log_fmt(text: str, data: Any = ''):
|
|
return f'{Colors.YELLOW}{text} {Colors.PURPLE}{data}{Colors.END}'
|
|
|
|
|
|
def int2str(li: list):
|
|
t = []
|
|
for i in li:
|
|
t.append(str(i))
|
|
return t
|