MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / _load_from_cache

Function _load_from_cache

scripts/fetch_eu_mdr_standards.py:416–426  ·  view source on GitHub ↗

Load standards from cache file.

()

Source from the content-addressed store, hash-verified

414
415
416def _load_from_cache() -> list[dict]:
417 """Load standards from cache file."""
418 raw_file = CACHE_DIR / "parsed_standards.json"
419 if raw_file.exists():
420 with open(raw_file, "r", encoding="utf-8") as f:
421 data = json.load(f)
422 standards = data["standards"]
423 print(f" Loaded {len(standards)} standards from cache")
424 return standards
425 print("ERROR: No standards data. Run with --fetch first.")
426 return []
427
428
429def show_diff(standards: list[dict]):

Callers 2

generate_jsonFunction · 0.85
show_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected