Search code examples
pythonparsingmt940

MT940 format parser


Can you recommend any OS, ready-to-go, well-documented and not dead MT940 format parser for Python?


Solution

  • I only manage to find this python project: https://github.com/headcr4sh/django-banking Maybe you can extend/update the above project for your own purpose. The code is quite easy to read.

    If you don't mind using Java, there's one up to date project that could parse/create any swift message easily:

    http://sourceforge.net/projects/wife/

    Code sample:

    creation: https://github.com/prowide/prowide-core-examples/blob/master/src/com/prowidesoftware/swift/samples/MessageCreationExample.java

    parsing: https://github.com/prowide/prowide-core-examples/blob/master/src/com/prowidesoftware/swift/samples/ParseMT940Example.java

    their website: http://www.prowidesoftware.com/core.jsp