[REPO REFACTOR]: changed to a better git repository structure with branches

This commit is contained in:
2025-11-01 06:12:45 +01:00
parent b218dd3f77
commit f0b04fcaad
36 changed files with 1366 additions and 0 deletions

17
util/files.py Normal file
View File

@@ -0,0 +1,17 @@
import json
def read(file: str) -> str:
with open(file, "r") as f:
return f.read()
def read_json(file: str) -> dict:
with open(file, "r") as f:
return json.load(f)
def write(file: str, content: str) -> None:
with open(file, "w") as f:
f.write(content)
def write_json(file: str, content: dict) -> None:
with open(file, "w") as f:
json.dump(content, f, indent=4, sort_keys=True, separators=(',', ': '), ensure_ascii=False)