ISSN (International Standard Serial Number).
The ISSN (International Standard Serial Number) is the standard code to identify periodical publications. It has a checksum similar to ISBN-10.
>>> validate('0024-9319')
'00249319'
>>> validate('0032147X')
Traceback (most recent call last):
...
InvalidChecksum: ...
>>> validate('003214712')
Traceback (most recent call last):
...
InvalidLength: ...
>>> compact('0032-1478')
'00321478'
>>> format('00249319')
'0024-9319'
>>> to_ean('0264-3596')
'9770264359008'
Calculate the ISSN check digit for 10-digit numbers. The number passed should not have the check bit included.
Convert the ISSN to the minimal representation. This strips the number of any valid ISSN separators and removes surrounding whitespace.
Reformat the passed number to the standard format.
Checks to see if the number provided is a valid ISSN. This checks the length and whether the check digit is correct.
Convert the number to EAN-13 format.
Checks to see if the number provided is a valid ISSN. This checks the length and whether the check digit is correct.