Auto Docs

pyiiif: Library code for working with the IIIF specifications

pyiiif.utils.convert_context_url_into_lookup(a_url)

tries to look up a IIIF context url in the key value of the valid_contexts dict

If cannot find the url will return None else will return the right key for defining a context value on a record

:rtype None or str

pyiiif.utils.escape_identifier(identifier)

Escapes a string identifier for inclusion in a URL

Parameters:identifier (str) – The identifier to escape
Return type:str
Returns:The identifier, escaped
pyiiif.utils.unescape_identifier(identifier)

Unescapes a string escaped by escape_identifier()

Parameters:identifier (str) – The escaped identifier
Return type:str
Returns:The identifier, unescaped
exception pyiiif.exceptions.ParameterError

Raised when a IIIF Image API Parameter is incorrect

__init__

Initialize self. See help(type(self)) for accurate signature.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.