Skip to main content

Parse MT103 messages from the Swift payments network

Project description

Parse MT103 messages from the Swift payments network

What’s an MT103?

Banks don’t really deal with cash much any more. Instead, they push bits around the internet tracking where your money goes digitally. The network that handles much of that movement is called Swift, and the transfers are documented in a special format native to that network called MT103.

What’s this Do?

Unfortunately, MT103 isn’t a common standard for most software developers. It’s ugly & hard to read for humans and not at all easy to parse. This library attempts to fix that, so all you have to do is pass an MT103 string into it and you get back a native Python object with the properties you’re looking for.

from mt103 import MT103

mt103 = MT103("some-mt-103-string")
print("basic header: {}, bank op code: {}, complete message: {}".format(
    mt103.basic_header,
    mt103.text.bank_operation_code
    mt103
))

Installation

It’s on PyPi, so just install it with pip.

$ pip install mt103

Changelog

1.0.0

  • Changed the nature of the .user_header attribute from a string to a UserHeader object. This new object has the same string representation (str(mt103.user_header)), but now also possesses new sub-attributes.
  • Added support for user header fields including bank_priority_code (bpc), message_user_reference (mur), service_type_identifier (sti), and unique_end_to_end_transaction_reference (uetr).

0.0.1

Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mt103-1.0.0-py2.py3-none-any.whl (16.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3
mt103-1.0.0.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page