MCPcopy
hub / github.com/safishamsi/graphify / batch_parse

Function batch_parse

worked/example/raw/parser.py:70–79  ·  view source on GitHub ↗

Parse a list of files and return their record IDs.

(paths: list)

Source from the content-addressed store, hash-verified

68
69
70def batch_parse(paths: list) -> list:
71 """Parse a list of files and return their record IDs."""
72 results = []
73 for path in paths:
74 try:
75 rid = parse_and_save(path)
76 results.append({"path": path, "id": rid, "ok": True})
77 except Exception as e:
78 results.append({"path": path, "error": str(e), "ok": False})
79 return results

Callers 1

handle_uploadFunction · 0.90

Calls 1

parse_and_saveFunction · 0.85

Tested by

no test coverage detected