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

Class LAPClient

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

Main LAP client for loading LAP documents.

Source from the content-addressed store, hash-verified

88
89
90class LAPClient:
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 5

setUpMethod · 0.90
basic_usage.pyFile · 0.90
compare_tokens.pyFile · 0.90
__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by 1

setUpMethod · 0.72