feat: logging

This commit is contained in:
2025-07-28 15:27:17 +04:00
parent 361f94323c
commit 27fb24a44c
10 changed files with 171 additions and 5 deletions

7
core/singleton.py Normal file
View File

@ -0,0 +1,7 @@
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]