MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / parse

Method parse

KVCOMM/tools/reader/readers.py:67–75  ·  view source on GitHub ↗
(self, file_path: Path)

Source from the content-addressed store, hash-verified

65 return []
66
67 def parse(self, file_path: Path) -> str:
68 logger.info(f"Reading JSON file from {file_path}.")
69 try:
70 with open(file_path, "r") as f:
71 data = json.load(f)
72 text = str(data)
73 return text
74 except:
75 return ''
76
77class JSONLReader(Reader):
78 def parse_file(file_path: Path) -> list:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected