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

Method parse

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

Source from the content-addressed store, hash-verified

118
119class MarkdownReader(Reader):
120 def parse(self, file_path: Path) -> str:
121 logger.info(f"Reading Markdown file from {file_path}.")
122 with open(file_path, "r") as f:
123 data = markdown.markdown(f.read())
124 text = "".join(BeautifulSoup(data, "html.parser").findAll(string=True))
125 return text
126
127class LaTexReader(Reader):
128 def parse(self, file_path: Path) -> str:

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected