Files
wehub-resource-sync 86db9aae8e
Documentation / build (push) Has been cancelled
Documentation / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:34:55 +08:00

15 lines
403 B
Python

from tabulate import tabulate
class Logger():
def __init__(self):
self.MAGENTA = '\033[95m'
self.END = '\033[0m'
self.BOLD = '\033[1m'
self.UNDERLINE = '\033[4m'
def log(self, message):
print (self.MAGENTA + message + self.END)
def log_table(self, headers, data):
self.log(tabulate(data, headers=headers, tablefmt="grid"))