mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-16 20:55:41 +02:00
35 lines
901 B
Python
35 lines
901 B
Python
"""
|
||
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",
|
||
]
|