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

Class YAMLReader

KVCOMM/tools/reader/readers.py:100–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 return text
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 1

readers.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected