consolidator
/
makeToDo.py
20 строк · 512.0 Байт
1import os2from typing import Any3import pandas as pd4from MyLogger import MyLogger5from MyConfig import MyConfig6import sys7import pandas as pd8
9cur_path = os.path.dirname(os.path.realpath(__file__))10conf = f"{cur_path}\\consolidation.json"11cfg = MyConfig(conf)12hdict:dict = cfg.get("level2 handlers",None)13# lst=[]
14# for key in hdict.keys():
15# lst.append({"key":key, "module":hdict[key], "done":False})
16# cfg.set("todo",lst)
17# cfg.sync()
18lst:list = cfg.get("todo",None)19df = pd.DataFrame(data=lst)20print(df)