add callback timeouts, secondary thread pools, and frame directives to Router

This commit is contained in:
2024-05-14 06:37:08 -07:00
parent 52ff2622f3
commit aab101bd1c
6 changed files with 552 additions and 112 deletions

View File

@@ -8,6 +8,13 @@ from colorama import Fore, Back, Style
def color_text(text, *colorama_args):
return f"{''.join(colorama_args)}{text}{Style.RESET_ALL}"
def get_func_name(func):
func_name = str(func)
if hasattr(func, '__name__'):
func_name = func.__name__
return func_name
class ColorFormatter(logging.Formatter):
_format = '%(levelname)-8s :: %(name)s %(message)s'