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

Function parse_and_save

worked/example/raw/parser.py:62–67  ·  view source on GitHub ↗

Full pipeline: parse, validate, save. Returns the saved record ID.

(path: str)

Source from the content-addressed store, hash-verified

60
61
62def parse_and_save(path: str) -> str:
63 """Full pipeline: parse, validate, save. Returns the saved record ID."""
64 doc = parse_file(path)
65 validated = validate_document(doc)
66 record_id = save_parsed(validated)
67 return record_id
68
69
70def batch_parse(paths: list) -> list:

Callers 1

batch_parseFunction · 0.85

Calls 3

validate_documentFunction · 0.90
save_parsedFunction · 0.90
parse_fileFunction · 0.85

Tested by

no test coverage detected