Initial curated EventLens source from 0d80d3b38dfb817285481665b9e71e4b8a0656a0
This commit is contained in:
commit
663ea8c829
85 files changed
+12395
No files matched your search
@@ -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"))
|
||||
]
|
||||
Reference in new issue
Block a user