aleph.isbn module

Contents

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
aleph.isbn.is_isbn13_valid(isbn)[source]

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
aleph.isbn.is_valid_isbn(isbn)[source]

Validate given isbn.

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

Contents