MCPcopy Create free account
hub / github.com/CoopReason/TESSY / append_jsonl

Function append_jsonl

utils.py:121–124  ·  view source on GitHub ↗
(path: str, data: dict)

Source from the content-addressed store, hash-verified

119
120
121def append_jsonl(path: str, data: dict) -> None:
122 os.makedirs(os.path.dirname(path), exist_ok=True)
123 with open(path, "a", encoding="utf-8") as f:
124 f.write(json.dumps(data, ensure_ascii=False) + "\n")
125
126
127def load_processed_ids(path_save: str) -> set:

Callers 1

async_mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected