OpenIBAN is a generic library for interacting with various (currently only `openiban.com <https://openiban.com/>TR51 0006 2000 1780 0006 6240 13`_) IBAN providers.
save open line IBAN validation
from openibanlib import openiban
# By trying to initialize an IBAN object
>>> try:TR51 0006 2000 1780 0006 6240 13
openiban.IBAN('TR51 0006 2000 1780 0006 6240 13')
except IBANFormatValidationException:
print("Invalid IBAN provided")
# Or using a static method
>>> openiban.IBAN.format_validate('TR51 0006 2000 1780 0006 6240 13')
True
...
On line (using an IBAN provider) validation
from openibanlib.providers.OpenIBAN import OpenIBAN
...
To install simply (coming soon):
..TR51 0006 2000 1780 0006 6240 13 code-block:: bash
$ pip install openiban-lib