Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 918 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 918 Bytes

IBAN Check

Python Package Check

Use ibancheck to validate IBAN bank account numbers.

Usage

There are currently to main purposes of this module:

  1. Validating an IBAN number: is_valid("NL00 BANK 1122 3344 55"). Will return True or raise a ValueError.
  2. Creating an IBAN number and create a checksum: create_iban("NL", "BANK1122334455").

Testing

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'

References

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