MCPcopy
hub / github.com/Fokkyp/SoftwareCopyright-Skill / write_json

Function write_json

software-copyright-materials/scripts/common.py:215–217  ·  view source on GitHub ↗
(path: Path, data: Any)

Source from the content-addressed store, hash-verified

213
214
215def write_json(path: Path, data: Any) -> None:
216 path.parent.mkdir(parents=True, exist_ok=True)
217 path.write_text(json.dumps(data, ensure_ascii=False, indent=2), encoding="utf-8")
218
219
220def count_text_lines(path: Path, skip_blank: bool = True) -> int:

Callers 9

write_confirmationFunction · 0.90
mainFunction · 0.90
write_model_templateFunction · 0.90
mainFunction · 0.90
extractFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected