Package xmlschema_acue

Source Code for Package xmlschema_acue

 1  # -*- coding: utf-8 -*- 
 2  # 
 3  # Copyright (c), 2016-2019, SISSA (International School for Advanced Studies). 
 4  # All rights reserved. 
 5  # This file is distributed under the terms of the MIT License. 
 6  # See the file 'LICENSE' in the root directory of the present 
 7  # distribution, or http://opensource.org/licenses/MIT. 
 8  # 
 9  # @author Davide Brunato <brunato@sissa.it> 
10  # 
11  from xmlschema_acue.exceptions import XMLSchemaException, XMLSchemaRegexError, XMLSchemaURLError 
12  from xmlschema_acue.resources import ( 
13      normalize_url, fetch_resource, load_xml_resource, fetch_namespaces, 
14      fetch_schema_locations, fetch_schema, XMLResource 
15  ) 
16  from xmlschema_acue.xpath import ElementPathMixin 
17  from xmlschema_acue.converters import ( 
18      ElementData, XMLSchemaConverter, ParkerConverter, BadgerFishConverter, AbderaConverter, JsonMLConverter 
19  ) 
20  from xmlschema_acue.documents import validate, to_dict, to_json, from_json 
21   
22  from xmlschema_acue.validators import ( 
23      XMLSchemaValidatorError, XMLSchemaParseError, XMLSchemaNotBuiltError, XMLSchemaModelError, 
24      XMLSchemaModelDepthError, XMLSchemaValidationError, XMLSchemaDecodeError, XMLSchemaEncodeError, 
25      XMLSchemaChildrenValidationError, XMLSchemaIncludeWarning, XMLSchemaImportWarning, XsdGlobals, 
26      XMLSchemaBase, XMLSchema, XMLSchema10 
27  ) 
28   
29  __version__ = '1.0.11' 
30  __author__ = "Davide Brunato" 
31  __contact__ = "brunato@sissa.it" 
32  __copyright__ = "Copyright 2016-2019, SISSA" 
33  __license__ = "MIT" 
34  __status__ = "Production/Stable" 
35   
36   
37  # API deprecation warnings 
38 -def XMLSchema_v1_0(*args, **kwargs):
39 import warnings 40 warnings.warn("XMLSchema_v1_0 class name has been replaced by XMLSchema10 " 41 "and will be removed in 1.1 version", DeprecationWarning, stacklevel=2) 42 return XMLSchema10(*args, **kwargs)
43 44
45 -def etree_get_namespaces(*args, **kwargs):
46 import warnings 47 warnings.warn("etree_get_namespaces() function name has been replaced by fetch_namespaces() " 48 "and will be removed in 1.1 version", DeprecationWarning, stacklevel=2) 49 return fetch_namespaces(*args, **kwargs)
50