Skip to content

isorailkit 0.1.0

Choose a tag to compare

@aldrineeinsteen aldrineeinsteen released this 30 Nov 16:01
81be7f4

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 isorailkit

Highlights

  • 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-path or ISORAILKIT_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 ValidationIssue with a stable code, a readable xpath, a line and a remediation_hint.
  • Pure-Python identifier checks. IBAN (Mod-97 and registry lengths), BIC, LEI, UETR and ISO 4217 minor-unit precision.
  • MT103 → pacs.008.001.08 translation. Every dropped, truncated or approximated field is reported.
  • CLI. isorailkit validate | schemas | check | translate mt103, with exit codes 0 valid, 1 invalid, 2 input error, and clean --json output.

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.