Seeded repo

This commit is contained in:
tegwick 2026-10-12 18:28:16 +02:00
parent 451fb5924c
commit 762707cefe
34 changed files with 1526 additions and 1 deletions

View file

@ -0,0 +1,9 @@
"""Illustrative JSON fixture reader. Production connector protocol is described in architecture/ConnectorContract.md."""
import json
from pathlib import Path
def load_snapshot(path: str | Path) -> dict:
return json.loads(Path(path).read_text(encoding="utf-8"))
def entities_by_kind(snapshot: dict, kind: str) -> list[dict]:
return [entity for entity in snapshot["entities"] if entity["kindId"] == kind]