data // PythonPROJECT
Python — Normalize Extracted Metadata
Normalize inconsistent metadata keys into a stable schema before reporting/export.
pythonmetadatanormalizationsfmc-auditor
Trust & provenancePROJECT
Evidence tierPROJECTOfficial sources0Other sources0Last verifiedNot recorded
Evidence tier describes my hands-on relationship with the content. Official sources describe platform contracts/documentation. Production observations should not automatically be treated as official limits.
def normalize_de(raw: dict) -> dict:
return {
"customer_key": raw.get("CustomerKey") or raw.get("customerKey"),
"name": raw.get("Name") or raw.get("name"),
"folder_id": raw.get("CategoryID") or raw.get("categoryId"),
"sendable": bool(raw.get("IsSendable")),
}Keep raw payloads for traceability; normalize into a separate canonical model.