Tag Archives: python

Reading MT940 files using Python

Some time ago I wrote a library to read MT940 files with Python. While there are multiple libraries available for this target, none of the others really work properly and/or support all variants of the format. The MT940 library I wrote is slightly different, it’s designed to be able to parse any MT940 file, regardless […]

8 Comments Continue Reading →

Windows version of os.walk with long path (255 characters) support

There are these times that you really have to use Windows and in those cases some issues like the 255 path limit tend to occur with network mounts. Luckily, this is fairly easy to solve with a small Python snippet: [python]import os UNUSED_DRIVE_LETTER = ‘x:’ def windows_walk(top, topdown=True, onerror=None, followlinks=False): for path, dirs, files in […]

1 Comment Continue Reading →