Handling ISBN-13¶
-
class
pyisbn.
Isbn13
(isbn)[source]¶ Initialise a new
Isbn13
object.Parameters: isbn (str) – ISBN-13 string -
calculate_checksum
()[source]¶ Calculate ISBN-13 checksum.
Returns: ISBN-13 checksum value Return type: str
-
convert
(code=None)[source]¶ Convert ISBN-13 to ISBN-10.
Parameters: code – Ignored, only for compatibility with Isbn
Returns: ISBN-10 string Return type: str
Raises: ValueError
– When ISBN-13 isn’t a Bookland “978” ISBN
-