MCPcopy
hub / github.com/openai/plugins / write_json

Function write_json

plugins/ngs-analysis/scripts/ngs_run_utils.py:85–87  ·  view source on GitHub ↗
(path: Path, value: Any)

Source from the content-addressed store, hash-verified

83
84
85def write_json(path: Path, value: Any) -> None:
86 path.parent.mkdir(parents=True, exist_ok=True)
87 path.write_text(json.dumps(value, indent=2, sort_keys=True) + "\n", encoding="utf-8")
88
89
90def write_text(path: Path, value: str) -> None:

Callers 15

mainFunction · 0.90
mainFunction · 0.90
write_outputsFunction · 0.90
execute_planFunction · 0.90
mainFunction · 0.90
executeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected