stdnum.isil

ISIL (International Standard Identifier for Libraries).

The ISIL is the International Standard Identifier for Libraries and Related Organizations.

>>> validate('IT-RM0267')
'IT-RM0267'
>>> validate('OCLC-DLC')
'OCLC-DLC'
>>> validate('WW-RM0267')  # unregistered country code
Traceback (most recent call last):
    ...
InvalidComponent: ...
>>> validate('WW-RM026712423345334534512334534545')  # too long
Traceback (most recent call last):
    ...
InvalidLength: ...
>>> format('it-RM0267')
'IT-RM0267'
Traceback (most recent call last):
    ...
InvalidLength: ...
stdnum.isil.compact(number)

Convert the ISIL to the minimal representation. This strips surrounding whitespace.

stdnum.isil.format(number)

Reformat the passed number to the standard format.

stdnum.isil.is_valid(number)

Checks to see if the number provided is a valid isil (or isilSV) number.

stdnum.isil.validate(number)

Checks to see if the number provided is a valid isil (or isilSV) number.

Previous topic

stdnum.isbn

Next topic

stdnum.ismn