MCPcopy Create free account
hub / github.com/microsoft/data-formulator / read

Method read

py-src/data_formulator/knowledge/store.py:368–371  ·  view source on GitHub ↗

Read the full content of a knowledge file.

(self, category: str, path: str)

Source from the content-addressed store, hash-verified

366 return items
367
368 def read(self, category: str, path: str) -> str:
369 """Read the full content of a knowledge file."""
370 self.validate_path(category, path)
371 return self._jail(category).read_text(path)
372
373 def write(self, category: str, path: str, content: str) -> Path:
374 """Create or update a knowledge file.

Callers 15

__init__Method · 0.80
test_connectionMethod · 0.80
_try_discoveryMethod · 0.80
scratch_uploadFunction · 0.80
knowledge_readFunction · 0.80
create_tableFunction · 0.80
parse_fileFunction · 0.80
_stream_csv_from_duckdbFunction · 0.80
import_sessionFunction · 0.80
import_session_zipMethod · 0.80

Calls 3

validate_pathMethod · 0.95
_jailMethod · 0.95
read_textMethod · 0.80