A library to parse MT940 files and returns smart Python collections for statistics and manipulation.
To install simply run:
pip install mt-940
import mt940 import pprint transactions = mt940.parse('tests/jejik/abnamro.sta') print 'Transactions:' print transactions pprint.pprint(transactions.data) print for transaction in transactions: print 'Transaction: ', transaction pprint.pprint(transaction.data)