MCPcopy Create free account
hub / github.com/Lap-Platform/LAP / load

Method load

sdks/python/lap/client.py:93–100  ·  view source on GitHub ↗

Load a .lap file and return a queryable document.

(self, path: str)

Source from the content-addressed store, hash-verified

91 """Main LAP client for loading LAP documents."""
92
93 def load(self, path: str) -> LAPDoc:
94 """Load a .lap file and return a queryable document."""
95 p = Path(path)
96 if not p.exists():
97 raise FileNotFoundError(f"LAP file not found: {path}")
98 raw = p.read_text()
99 spec = parse_lap(raw)
100 return LAPDoc(spec, raw)

Callers 14

setUpMethod · 0.45
getMethod · 0.45
searchMethod · 0.45
basic_usage.pyFile · 0.45
compare_tokens.pyFile · 0.45
detectFormatFunction · 0.45
compileOpenapiFunction · 0.45
compileAsyncApiFunction · 0.45

Calls 2

parse_lapFunction · 0.90
LAPDocClass · 0.85