ISBN validation module
This module is providing funcionality to validate ISBN checksums and also
allows to compute ISBN’s checksum digits.a
-
edeposit.amqp.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. |
-
edeposit.amqp.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. |
-
edeposit.amqp.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 |
-
edeposit.amqp.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 |
-
edeposit.amqp.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 |