iban

validators.iban.iban(value: str, /)

Return whether or not given value is a valid IBAN code.

Examples

>>> iban('DE29100500001061045672')
True
>>> iban('123456')
ValidationError(func=iban, args={'value': '123456'})
Parameters:

value – IBAN string to validate.

Returns:

If value is a valid IBAN code. (ValidationError): If value is an invalid IBAN code.

Return type:

(Literal[True])