hashiruAI / CEO /singleton.py
Harshil Patel
add budget manager and bug fixes
8cf77a3
raw
history blame
182 Bytes
def singleton(cls):
instances = {}
def getinstance():
if cls not in instances:
instances[cls] = cls()
return instances[cls]
return getinstance