This commit is contained in:
2026-03-18 17:43:03 +01:00
parent d80d912fb3
commit c89c08c397
10 changed files with 2352 additions and 123 deletions
+34
View File
@@ -0,0 +1,34 @@
"""
Parsers PEC Fase 3.
Esporta i moduli principali per il parsing di messaggi PEC:
- eml_parser: parsing MIME completo (body, allegati, header)
- pec_parser: classificazione tipo PEC da header X-Ricevuta / X-TipoRicevuta
- receipt_extractor: estrazione EML annidato nelle ricevute (EML-in-EML)
"""
from app.parsers.eml_parser import AttachmentInfo, ParsedEmail, parse_eml
from app.parsers.pec_parser import (
PecClassification,
VALID_OUTBOUND_TRANSITIONS,
classify_pec_message,
get_state_transition,
)
from app.parsers.receipt_extractor import (
NestedEmlInfo,
extract_nested_eml,
extract_receipt_xml,
)
__all__ = [
"AttachmentInfo",
"ParsedEmail",
"parse_eml",
"PecClassification",
"VALID_OUTBOUND_TRANSITIONS",
"classify_pec_message",
"get_state_transition",
"NestedEmlInfo",
"extract_nested_eml",
"extract_receipt_xml",
]