pain001.core package#
Submodules#
pain001.core.core module#
- pain001.core.core.process_files(xml_message_type: str, xml_template_file_path: str, xsd_schema_file_path: str, data_file_path: str | list[dict[str, Any]] | dict[str, Any]) None[source]#
Generate an ISO 20022 payment message from various data sources.
- Parameters:
xml_message_type – XML message type (e.g., ‘pain.001.001.03’).
xml_template_file_path – Path to the XML template file.
xsd_schema_file_path – Path to the XSD schema file.
data_file_path – File path (CSV/DB/JSON/Parquet) or Python data (list/dict).
- Raises:
ValueError – If the XML message type is not supported or data is invalid.
FileNotFoundError – If required files do not exist.