mementoweb.validator package

Subpackages

Submodules

mementoweb.validator.config module

class mementoweb.validator.config.Config

Bases: object

Provides access to the configuration parameters from config.xml.

The configuration only supports xml.

file_path = 'config.xml'
static get_env(xpath: str) List[xml.etree.ElementTree.Element]

Get specified configuration parameter from “config.xml” using the specified xpath. :param xpath: xpath of the element :return: list of matching elements in document order

mementoweb.validator.validator_types module

class mementoweb.validator.validator_types.ResourceType(value)

Bases: enum.Enum

Resource types. Used for typing support.

MEMENTO = 'memento'
ORIGINAL = 'original'
TIMEGATE = 'timegate'
TIMEMAP = 'timemap'

Module contents