This module is providing funcionality to validate and compute ISBN checksums.
See is_valid_isbn() for details.
Parameters: | isbn (str/list) – ISBN number as string or list of digits |
---|
Warning
Function expects that isbn is only 9 digits long.
Returns: | int – Last (checksum) digit for given isbn. |
---|
Check if given isbn 10 is valid.
Parameters: | isbn (str/list) – ISBN number as string or list of digits. |
---|---|
Returns: | bool – True if ISBN is valid. |
Parameters: | isbn (str/list) – ISBN number as string or list of digits. |
---|
Warning
Function expects that isbn is only 12 digits long.
Returns: | int – Last checksum digit for given isbn. |
---|
Check if given isbn 13 is valid.
Parameters: | isbn (str/list) – ISBN number as string or list of digits. |
---|---|
Returns: | bool – True if ISBN is valid. |
Validate given isbn. Wrapper for is_isbn10_valid()/ is_isbn13_valid().
Parameters: | isbn (str/list) – ISBN number as string or list of digits. |
---|
Note
Function doesn’t require isbn type to be specified (it can be both 10/13 isbn’s versions).
Returns: | bool – True if ISBN is valid. |
---|