MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / load_sections

Function load_sections

graphify/callflow_html.py:330–337  ·  view source on GitHub ↗

Load section definitions from JSON file.

(path: str | Path | None)

Source from the content-addressed store, hash-verified

328
329
330def load_sections(path: str | Path | None) -> list:
331 """Load section definitions from JSON file."""
332 data = read_json(path, default=[])
333 if isinstance(data, dict) and isinstance(data.get("sections"), list):
334 data = data["sections"]
335 if not isinstance(data, list):
336 raise SystemExit(f"ERROR: sections file must contain a JSON array: {path}")
337 return data
338
339
340def load_report(path: str | Path | None) -> str:

Callers 1

write_callflow_htmlFunction · 0.85

Calls 2

read_jsonFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected