Repository navigation
Releases
Releases · OpenPayOps/isorailkit
isorailkit 0.1.1
Fixed
ReqdExctnDtremediation hints now match the message version. The element is a plainISODateup to pain.001.001.07 and a<Dt>/<DtTm>choice from .08 onwards.- Legacy messages such as pain.001.001.03 (validated via
--schema-path) are no longer told to wrap the date in<Dt>/<DtTm>. The hint now reads: "Provide a valid ISO 8601 date in YYYY-MM-DD format (or wrap in<Dt>/<DtTm>for pain.001.001.08+)." - In pain.001.001.08+, a bare date such as
<ReqdExctnDt>2026-11-30</ReqdExctnDt>now gets: "Wrap the date in a child element, e.g.<ReqdExctnDt><Dt>2026-11-30</Dt></ReqdExctnDt>, or use<DtTm>for a date-time." Before, it got a generic "remove the text" hint.
- Legacy messages such as pain.001.001.03 (validated via
No public API changes.
Full changelog: v0.1.0...v0.1.1
isorailkit 0.1.0
First public release of isorailkit, an independent developer toolkit derived from the ISO 20022 financial messaging standard. It is stateless and works offline.
pip install isorailkitHighlights
- Safe XML parsing. DTDs, external entities and entity expansion are rejected (
XML_DTD_FORBIDDEN) before libxml2 sees the input. - Base XSD validation. Bundled schemas from iso20022.org cover pacs.008, pacs.009, pacs.002, pacs.004, pain.001, pain.002, camt.053, camt.054 and head.001. Parts wrapped in an envelope are found and validated.
- Your own schemas at runtime. Load them with
SchemaRegistry,--schema-pathorISORAILKIT_SCHEMA_PATH. They override bundled ones, and local includes and imports run in a sandbox. Nothing is ever fetched over the network. - Plain-English errors. Each problem is a structured
ValidationIssuewith a stablecode, a readablexpath, alineand aremediation_hint. - Pure-Python identifier checks. IBAN (Mod-97 and registry lengths), BIC, LEI, UETR and ISO 4217 minor-unit precision.
- MT103 →
pacs.008.001.08translation. Every dropped, truncated or approximated field is reported. - CLI.
isorailkit validate | schemas | check | translate mt103, with exit codes0valid,1invalid,2input error, and clean--jsonoutput.
Requires Python 3.11 or later and is tested on Linux, macOS and Windows. Its runtime dependencies are lxml, typer, rich and pydantic.
See the README and the architecture document for details.
isorailkit is not affiliated with, endorsed by, or certified by ISO or SWIFT. The MT103 translation is an independent mapping, not an official SWIFT translation, and applies no CBPR+ or other usage guidelines.