pyblz is a Python wrapper library for Deutsche Bundesbank's BLZ data.
>>> import pyblz
>>> banks = pyblz.bank_data()
>>> len(banks)
4098
>>> banks['64150020']
{'bic': u'SOLADES1TUB',
'blz': u'64150020',
'change_type': u'U',
'checksum_type': u'01',
'city': u'T\xfcbingen',
'delete_type': u'0',
'name': u'Kreissparkasse T\xfcbingen',
'next_blz': u'00000000',
'pan': u'56008',
'record_number': u'002683',
'shortname': u'Kr Spk T\xfcbingen',
'type': u'1',
'zip': u'72008'}
A different file can be parsed if the package is not up to date:
>>> import pyblz.parse
>>> banks = pyblz.parse.parse('another-file.txt')
Product's homepage
Requirements:
· Python