MCPcopy Create free account
hub / github.com/bhowiebkr/PyFlowGraph / load_flow_file

Function load_flow_file

src/data/flow_format.py:309–315  ·  view source on GitHub ↗

Load a .md file and return JSON graph data.

(file_path: str)

Source from the content-addressed store, hash-verified

307
308
309def load_flow_file(file_path: str) -> Dict[str, Any]:
310 """Load a .md file and return JSON graph data."""
311 with open(file_path, 'r', encoding='utf-8') as f:
312 content = f.read()
313
314 handler = FlowFormatHandler()
315 return handler.markdown_to_data(content)
316
317
318def save_flow_file(file_path: str, graph_data: Dict[str, Any],

Callers 1

Calls 2

markdown_to_dataMethod · 0.95
FlowFormatHandlerClass · 0.85

Tested by 1