pyiso20022 is a library for generating ISO20022 messages in Python.
Project description
ISO 20022 Message Generator (pyiso20022)
A suite of classes to support payment message generation (for ISO 20022 payment messages)
Using pyiso20022 package
pip install pyiso20022
Then use this code:
from xsdata.formats.dataclass.parsers import XmlParser
from pyiso20022.pain.pain_001_001_08 import *
import sys
parser = XmlParser()
with open("example_files/gs_pain/pain001_001_08.xml", "rb") as xml_file:
doc: Document = parser.parse(xml_file, Document, )
print(doc.cstmr_cdt_trf_initn.pmt_inf[0].dbtr.pstl_adr.pst_cd)
Using the Repo (from Github rather than imnstalling the package)
Create the message (just using the repo and not the package)
python -m pip install -r requirements.txt
./build_classes_from_xsds.py
python create_msg_1.py
Message types?
Currently only supports PACS & PAIN messages as well as HEAD (header documents for the PACS).
Source of truth?
If you want the original source of truth for all things ISO 20022 schema related then check out www.iso20022.org
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyiso20022-0.0.1.tar.gz
(295.8 kB
view hashes)
Built Distribution
pyiso20022-0.0.1-py3-none-any.whl
(339.6 kB
view hashes)
Close
Hashes for pyiso20022-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42b3c5f9289c0c7d906feeb55c54a951acb4f108f98d0e20476694eab9dd07fe |
|
MD5 | d9ca6a7f4f3a1368d3a78287de6d297f |
|
BLAKE2b-256 | 4f1e01d9ad8e555fde4aa3972e463b96e2a61dc9928110562f73a677e4cef906 |