aleph.isbn module¶
This module is providing funcionality to validate ISBN checksums and also allows to compute ISBN’s checksum digits.a
- aleph.isbn.get_isbn10_checksum(isbn)[source]¶
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.
- aleph.isbn.get_isbn13_checksum(isbn)[source]¶
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.
- aleph.isbn.is_isbn10_valid(isbn)[source]¶
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