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.
Source Distribution
Built Distribution
File details
Details for the file mt103-1.0.1.tar.gz
.
File metadata
- Download URL: mt103-1.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57557f5aa0af2bb6eb60d2e623c636cef4f71375a4a63d6cfa341d8613a0b60e |
|
MD5 | b8585b458bd87b52c7a727aef01be9d7 |
|
BLAKE2b-256 | 3216aa17e31a072453681138fd8b933dc564746446ff507092ffc8f0c1dc1f5f |
File details
Details for the file mt103-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: mt103-1.0.1-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce63d449e705856d8949b507a37fe6a3755df5f31872c6fc95eedfad8d7758f1 |
|
MD5 | a74bb853a8536aa14c51f7a917247209 |
|
BLAKE2b-256 | c2bc83b0a339403a570ceccccb183c6aceeab0636d2aa8deadec1bbe24789e96 |