Code Monkey home page Code Monkey logo

mt940's Introduction

MT940

Converter from SWIFT format MT940 (Credit Suisse) to simple, importable CSV format.

Until now this is really a HACK but it works for me. Needed it today and found nothing useful on the net. If you use Xero and are a Credit Suisse customer this could be useful.

Maybe there will be more documentation and better code in the future.

Usage

convert STA file:

python mt940.py data.sta
open export.csv

mt940's People

Contributors

mhalder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mt940's Issues

data.sta

Please add example data.sta file

thanks works great, but... ':' not allowed in field 86 subtags

Thanks for the quick hack. Does a good job.

my only issue is with the field 86 subtags: they actually allow any character to be used as payload, and having a ":" in a custom bank statement communication happens often, but that breaks your field detection regexp.

Could you please update your script to allow ':' in the 86 payload ? eg:

:86:020?00Authen. PSD2 : M
?20FRANK D : Rechnung 2020-11
?21/EREF/WB0H230590006489/
?30BGLLLULL
?31LU3900390039003900
?60Compte Optiflex

Error in mt940.py

I got error:
...mt940.py", line 39, in
match_dict = match.groupdict()
AttributeError: 'NoneType' object has no attribute 'groupdict'

When I solve than I got error:
...mt940-1.py", line 54, in
date = match_dict['valuta']
NameError: name 'match_dict' is not defined

It looks like there is missing definition of match_dict for field 86.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.