iban¶
validators.iban.iban(value)
¶
Return whether or not given value is a valid IBAN code.
Examples:
>>> iban('DE29100500001061045672')
# Output: True
>>> iban('123456')
# Output: ValidationError(func=iban, ...)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
str
|
IBAN string to validate. |
required |
Returns:
Type | Description |
---|---|
Literal[True]
|
If |
ValidationError
|
If |
New in version 0.8.0
Source code in /opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/validators/iban.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|