-
Notifications
You must be signed in to change notification settings - Fork 13
/
__init__.py
84 lines (80 loc) · 1.64 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# -*- coding: utf-8 -*-
"""METS reader and writer."""
from __future__ import absolute_import
import logging
from .exceptions import MetsError, ParseError
from .fsentry import FSEntry
from .metadata import AMDSec, SubSection, MDRef, MDWrap
from .mets import METSDocument
from .utils import (
NAMESPACES,
SCHEMA_LOCATIONS,
lxmlns,
FILE_ID_PREFIX,
GROUP_ID_PREFIX,
urlencode,
urldecode,
)
from .validate import (
METS_XSD_PATH,
AM_SCT_PATH,
AM_PNTR_SCT_PATH,
get_schematron,
validate,
get_xmlschema,
xsd_validate,
schematron_validate,
sct_report_string,
xsd_error_log_string,
report_string
)
from .di import (
FeatureBroker,
set_feature_broker_to_default_state,
feature_broker,
Dependency,
has_class_methods,
has_methods,
is_class
)
from . import plugins
LOGGER = logging.getLogger(__name__)
LOGGER.addHandler(logging.NullHandler())
__version__ = '0.2.4'
__all__ = [
'AMDSec',
'AM_PNTR_SCT_PATH',
'AM_SCT_PATH',
'Dependency',
'FILE_ID_PREFIX',
'FSEntry',
'FeatureBroker',
'GROUP_ID_PREFIX',
'MDRef',
'MDWrap',
'METSDocument',
'METS_XSD_PATH',
'MetsError',
'NAMESPACES',
'ParseError',
'SCHEMA_LOCATIONS',
'SubSection',
'__version__',
'feature_broker',
'get_schematron',
'get_xmlschema',
'has_class_methods',
'has_methods',
'is_class',
'lxmlns',
'plugins',
'report_string',
'schematron_validate',
'sct_report_string',
'set_feature_broker_to_default_state',
'urldecode',
'urlencode',
'validate',
'xsd_error_log_string',
'xsd_validate',
]