Model/backend/condition/handler.py
2026-02-04 12:57:51 +00:00

22 lines
585 B
Python

from typing import Mapping, Any
from io import BytesIO
from backend.condition.lookups.uprn_lookup_s3 import UprnLookupS3
from utils.logger import setup_logger
from backend.condition.processor import process_file
logger = setup_logger()
def handler(event: Mapping[str, Any], context: Any) -> None:
# Temporary stub for PoC wiring
uprn_lookup = UprnLookupS3(
bucket="", key=""
) # TODO: replace with postgres implementation
dummy_stream = BytesIO(b"")
source_key = event.get("source_key", "unknown-source")
process_file(dummy_stream, source_key)