from dataclasses import dataclass, field from typing import List, Optional, Dict @dataclass class HanaConfig: server: str port: int user: str password: str @dataclass class OutlookConfig: client_id: str client_secret: str tenant_id: str download_folder: str verify_ssl: bool ca_bundle: Optional[str] @dataclass class SmbConfig: server: str username: str password: str share: str mount_points: Dict[str, str] @dataclass class MailConfig: email: str ruta_descarga: str ruta_final: str base_datos: str usuario: str password: str smb_folder: str @dataclass class Config: hana: HanaConfig outlook: OutlookConfig smb: SmbConfig mails: List[MailConfig]