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

Method parse

KVCOMM/tools/reader/readers.py:101–109  ·  view source on GitHub ↗
(self, file_path: Path, return_str=True)

Source from the content-addressed store, hash-verified

99
100class YAMLReader(Reader):
101 def parse(self, file_path: Path, return_str=True) -> Union[str, Any]:
102 logger.info(f"Reading YAML file from {file_path}.")
103 with open(file_path, "r") as f:
104 data = yaml.load(f, Loader=yaml.FullLoader)
105 text = str(data)
106 if return_str:
107 return text
108 else:
109 return data
110
111class HTMLReader(Reader):
112 def parse(self, file_path: Path) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected