Initial curated EventLens source from 0d80d3b38dfb817285481665b9e71e4b8a0656a0

This commit is contained in:
Public Source Publisher committed 2026-10-01 01:30:24 +02:00
commit 663ea8c829
85 files changed
+12395

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import json
from pathlib import Path
from .models import NormalizedEvent
def load_demo() -> list[NormalizedEvent]:
path = Path(__file__).resolve().parents[2] / "samples" / "demo-events.json"
return [
NormalizedEvent.model_validate(item)
for item in json.loads(path.read_text(encoding="utf-8"))
]