MCPcopy Index your code
hub / github.com/FastMAS/KVCOMM / parse

Method parse

KVCOMM/tools/reader/readers.py:85–90  ·  view source on GitHub ↗
(file_path: Path)

Source from the content-addressed store, hash-verified

83 return lines
84
85 def parse(file_path: Path) -> str:
86 logger.info(f"Reading JSON Lines file from {file_path}.")
87 with open(file_path, "r",encoding='utf-8') as f:
88 lines = [json.loads(line) for line in f]
89 text = '\n'.join([str(line) for line in lines])
90 return text
91
92class XMLReader(Reader):
93 def parse(self, file_path: Path) -> str:

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected