mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
22 lines
585 B
Python
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)
|