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

Method parse_file

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

Source from the content-addressed store, hash-verified

76
77class JSONLReader(Reader):
78 def parse_file(file_path: Path) -> list:
79 logger.info(f"Reading JSON Lines file from {file_path}.")
80 with open(file_path, "r",encoding='utf-8') as f:
81 lines = [json.loads(line) for line in f]
82
83 return lines
84
85 def parse(file_path: Path) -> str:
86 logger.info(f"Reading JSON Lines file from {file_path}.")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected