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

Method parse

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

Source from the content-addressed store, hash-verified

91
92class XMLReader(Reader):
93 def parse(self, file_path: Path) -> str:
94 logger.info(f"Reading XML file from {file_path}.")
95 with open(file_path, "r") as f:
96 data = BeautifulSoup(f, "xml")
97 text = data.get_text()
98 return text
99
100class YAMLReader(Reader):
101 def parse(self, file_path: Path, return_str=True) -> Union[str, Any]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected