fase 3
This commit is contained in:
@@ -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",
|
||||
]
|
||||
Reference in New Issue
Block a user