Use ibancheck to validate IBAN bank account numbers.
There are currently to main purposes of this module:
- Validating an IBAN number:
is_valid("NL00 BANK 1122 3344 55")
. Will return True or raise a ValueError. - Creating an IBAN number and create a checksum:
create_iban("NL", "BANK1122334455")
.
Testing is done in a selftest manner. So tests are in the code and are run on import. To test manually do python3 -c 'import ibancheck'
The International Bank Account Number is described by European Committee For Banking Standards in EBS204 v3.2 August 2003 The official registry is in ISO 13616