MCPcopy Create free account

hub / github.com/sissaschool/xmlschema / functions

Functions2,466 in github.com/sissaschool/xmlschema

↓ 14 callersMethod_parse_reference
(self, elem, attribute_name)
xmlschema/extras/wsdl.py:107
↓ 14 callersFunctionencode_url
Encode the given url, if necessary.
xmlschema/utils/urls.py:168
↓ 14 callersMethodget_model_particle
Checks if the provided particle belongs to the current model, raising a `XMLSchemaModelError` in case if it's not. Defaults to curren
xmlschema/validators/models.py:531
↓ 14 callersFunctionis_lxml_element
A validator for lxml elements.
xmlschema/utils/etree.py:37
↓ 14 callersMethodtext_decode
(self, text: str, validation: str = 'skip', context: Optional[ValidationContext] = None)
xmlschema/validators/xsdbase.py:877
↓ 13 callersMethodcheck_url
(self, url, expected)
tests/test_resources.py:92
↓ 13 callersMethodcheck_validator
Checks the status of a schema validator against a validation mode.
xmlschema/validators/xsdbase.py:129
↓ 13 callersFunctiondistinguishable_paths
Checks if two model paths are distinguishable in a deterministic way, without looking forward or backtracking. The arguments are lists contai
xmlschema/validators/models.py:36
↓ 13 callersMethodfind
(self, path: str, namespaces: Optional[NsmapType] = None, ancestors: Optional[list[E
xmlschema/resources/xml_resource.py:726
↓ 13 callersMethodis_exceeded
Tests if particle occurrences are over the maximum. If the argument is `None` then tests the current element.
xmlschema/validators/models.py:629
↓ 13 callersMethoditer_depth
Iterates XML subtrees. For fully loaded resources yields the root element. On lazy resources the argument *mode* can change the seque
xmlschema/resources/xml_resource.py:590
↓ 13 callersMethodmap_qname
(self, qname: str)
xmlschema/converters/gdata.py:49
↓ 13 callersMethodnormalize
(self)
xmlschema/utils/paths.py:145
↓ 13 callersFunctionparse_xpath_default_namespace
Parse XSD 1.1 xpathDefaultNamespace attribute for schema, alternative, assert, assertion and selector declarations, checking if the value is
xmlschema/validators/helpers.py:99
↓ 13 callersMethodsystem
(self)
xmlschema/validators/notations.py:50
↓ 12 callersMethodcasepath
Returns the absolute path of a test case from its relative path.
xmlschema/testing/_test_case_classes.py:41
↓ 12 callersMethodcheck_stop
Stops a model and checks the expected errors list. :param model: an ModelGroupVisitor instance. :param expected: can be an e
tests/validators/test_models.py:103
↓ 12 callersMethodget_matching_item
If a key is matching component name, returns its value, otherwise returns `None`.
xmlschema/validators/xsdbase.py:547
↓ 12 callersMethodis_namespace_allowed
(self, namespace: str)
xmlschema/validators/wildcards.py:176
↓ 12 callersMethodis_pointless
Returns `True` if the group may be eliminated without affecting the model, `False` otherwise. A group is pointless if one of those co
xmlschema/validators/groups.py:181
↓ 12 callersMethodis_restriction
(self, other: ModelParticleType, check_occurs: bool = True)
xmlschema/validators/groups.py:680
↓ 12 callersFunctionmatch_location
Match a URL against a group of locations. Give priority to exact matches, then to the match with the highest score after filtering out the lo
xmlschema/utils/urls.py:311
↓ 12 callersFunctionparse_xsd_derivation
Get a derivation attribute (maybe 'block', 'blockDefault', 'final' or 'finalDefault') checking the items with the values arguments. Returns a
xmlschema/validators/helpers.py:65
↓ 11 callersMethod_parse_particle
(self, elem: ElementType)
xmlschema/validators/particles.py:143
↓ 11 callersMethodcreate_element
Creates a xs:element instance related to schema component. Used as dummy element for validation/decoding/encoding operations
xmlschema/validators/builders.py:300
↓ 11 callersMethodhas_simple_content
(self)
xmlschema/validators/complex_types.py:567
↓ 11 callersMethodintersection
Update an XSD wildcard with the intersection of itself and another XSD wildcard.
xmlschema/validators/wildcards.py:339
↓ 11 callersMethodis_empty
(self)
xmlschema/validators/complex_types.py:559
↓ 11 callersMethodis_list
Returns `True` if the instance is a list simpleType, `False` otherwise.
xmlschema/validators/xsdbase.py:781
↓ 11 callersMethoditer_components
(self, xsd_classes: Optional[ComponentClassType] = None)
xmlschema/validators/groups.py:651
↓ 11 callersMethoditer_substitutes
(self)
xmlschema/validators/elements.py:550
↓ 11 callersMethoditerfind
Apply XPath selection to XML resource that yields full subtrees. :param path: an XPath 2.0 expression that selects element nodes. \
xmlschema/resources/xml_resource.py:658
↓ 11 callersFunctionrun_timeit
(stmt='pass', setup='pass', number=1000)
profiling/profile_context.py:16
↓ 11 callersMethodunion
Update an XSD wildcard with the union of itself and another XSD wildcard.
xmlschema/validators/wildcards.py:269
↓ 10 callersMethod_set_type
(self, value: BaseXsdType)
xmlschema/validators/elements.py:150
↓ 10 callersMethodcasepath
(cls, relative_path)
tests/test_dataobjects.py:101
↓ 10 callersMethodclear
(self, elem: ElementType)
xmlschema/resources/xml_loader.py:169
↓ 10 callersMethodfind
Finds the first XSD subelement matching the path. :param path: an XPath expression that considers the XSD component as the root elem
xmlschema/xpath/mixin.py:96
↓ 10 callersMethodhas_simple_content
Returns `True` if the instance has a simple content, `False` otherwise.
xmlschema/validators/xsdbase.py:803
↓ 10 callersMethodis_missing
Returns `True` if the given location hint is missing, `False` otherwise.
xmlschema/loaders.py:360
↓ 10 callersMethodis_missing
Tests if particle occurrences are under the minimum. If the argument is `None` then tests the current element.
xmlschema/validators/models.py:615
↓ 10 callersMethodis_simple
()
xmlschema/validators/complex_types.py:552
↓ 10 callersMethodis_single
(self)
xmlschema/validators/groups.py:173
↓ 10 callersMethodis_univocal
Tests if min_occurs == max_occurs.
xmlschema/validators/particles.py:105
↓ 10 callersMethoditer_elements
A generator function iterating model's elements. Raises `XMLSchemaModelDepthError` if the overall depth of the model groups is over `
xmlschema/validators/groups.py:350
↓ 10 callersMethodrun_validate
(self, *args)
tests/test_cli.py:32
↓ 10 callersFunctionto_etree
Encodes a data structure/object to an ElementTree's Element. :param obj: the Python object that has to be encoded to XML data. :param sc
xmlschema/documents.py:377
↓ 10 callersMethodtype_name
Get the unqualified name of the XSD type. Invalid chars for identifiers are replaced by an underscore. :param obj: an instan
xmlschema/extras/codegen.py:407
↓ 9 callersMethod__init__
(self, elem, wsdl_document)
xmlschema/extras/wsdl.py:293
↓ 9 callersMethod_parse_content_tail
(self, elem: ElementType, **kwargs: Any)
xmlschema/validators/complex_types.py:241
↓ 9 callersMethodclose
(self)
xmlschema/utils/protocols.py:17
↓ 9 callersFunctiondecimal_validator
(value: Union[Decimal, int, float, str])
xmlschema/validators/helpers.py:151
↓ 9 callersFunctionfetch_schema_locations
Fetches schema location hints from an XML data source and a list of location hints. If an accessible schema location is not found raises a Va
xmlschema/resources/fetchers.py:52
↓ 9 callersMethodget_obj_as_string
Return a string representation of obj attribute, with optional indentation and an optional limit on lines.
xmlschema/validators/exceptions.py:372
↓ 9 callersFunctionis_url
Returns `True` if the provided object is a URL, `False` otherwise.
xmlschema/utils/urls.py:61
↓ 9 callersMethoditer_errors
Creates an iterator for the errors generated by the validation of an XML data against the XSD schema/component instance. Accepts the
xmlschema/validators/schemas.py:1285
↓ 9 callersMethoditer_select
(self, root: Union[ElementType, 'XMLResource'])
xmlschema/xpath/selectors.py:207
↓ 9 callersMethodnamespace
The element's namespace.
xmlschema/dataobjects.py:179
↓ 9 callersMethodqname
Get the QName of the provided object. Invalid chars for identifiers are replaced by an underscore. :param obj: an XSD object
xmlschema/extras/codegen.py:339
↓ 9 callersMethodrender_to_files
(self, names, parent=None, global_vars=None, output_dir='.', force=False)
xmlschema/extras/codegen.py:233
↓ 9 callersMethodtype_qname
Get the unqualified name of the XSD type. Invalid chars for identifiers are replaced by an underscore. :param obj: an instan
xmlschema/extras/codegen.py:436
↓ 9 callersFunctionvalidate
()
xmlschema/cli.py:234
↓ 8 callersMethod__init__
(self, validator: 'XsdValidator', message: str, elem: Optional[ElementType] = None,
xmlschema/validators/exceptions.py:244
↓ 8 callersMethod__new__
(mcs, name: str, bases: tuple[type[Any]], dict_: dict[str, Any])
xmlschema/validators/schemas.py:90
↓ 8 callersMethod_parse_target_namespace
XSD 1.1 targetNamespace attribute in elements and attributes declarations.
xmlschema/validators/xsdbase.py:459
↓ 8 callersMethodadd_schema
Add another schema source to the maps of the instance without affecting imports or includes registrations. :param source: a
xmlschema/validators/schemas.py:1020
↓ 8 callersMethodbuild
(self)
xmlschema/validators/builders.py:495
↓ 8 callersMethodcheck_advance
Advances a model with an argument match condition and checks the expected error list. :param model: an ModelGroupVisitor instance.
tests/validators/test_models.py:89
↓ 8 callersMethodclear
Clears the instance maps and schemas. :param remove_schemas: removes also the schema instances, keeping only the \ validator
xmlschema/validators/xsd_globals.py:505
↓ 8 callersMethodcreate_any_content_group
Creates a local child model group for a complex type or a group that accepts any content. :param parent: the parent complex type or
xmlschema/validators/builders.py:212
↓ 8 callersFunctiondecode_url
Decode the given url, if necessary.
xmlschema/utils/urls.py:188
↓ 8 callersMethodget_facet
(self, tag: str)
xmlschema/validators/simple_types.py:529
↓ 8 callersMethodget_memory_usage
(output)
tests/run_memory_tests.py:30
↓ 8 callersMethodget_schema
Returns the first schema loaded for a namespace. Raises a `KeyError` if the requested namespace is not loaded.
xmlschema/validators/schemas.py:933
↓ 8 callersMethodis_blocked
Returns `True` if the base type derivation is blocked, `False` otherwise.
xmlschema/validators/xsdbase.py:844
↓ 8 callersMethodis_emptiable
(self)
xmlschema/validators/groups.py:167
↓ 8 callersMethodis_optional
Returns `True` if the provided particle can be optional in the model group.
xmlschema/validators/groups.py:448
↓ 8 callersMethodis_substitute
(self, other: ModelParticleType)
xmlschema/validators/elements.py:1240
↓ 8 callersMethoditer_decode
Creates an iterator for decoding an XML source to a data structure. :param source: the source of XML data. Can be an :class:`XMLReso
xmlschema/validators/schemas.py:1439
↓ 8 callersMethoditer_group
Returns an iterator for the current model group.
xmlschema/validators/models.py:248
↓ 8 callersMethodload
(self, qname: str, elem: ElementType, schema: SchemaType)
xmlschema/validators/builders.py:432
↓ 8 callersMethodmap_attributes
Creates an iterator for converting decoded attributes to a data structure with appropriate prefixes. :param attributes: A se
xmlschema/converters/base.py:233
↓ 8 callersMethodmap_content
A generator function for converting the decoded content to a data structure. :param content: A sequence or an iterator of tuples wit
xmlschema/converters/base.py:247
↓ 8 callersMethodname
The element's name, that matches the tag.
xmlschema/dataobjects.py:186
↓ 8 callersMethodrestart
(self)
xmlschema/validators/models.py:239
↓ 8 callersFunctionrun_timeit
(stmt='pass', setup='pass', number=1000)
profiling/profile_params.py:16
↓ 8 callersMethodtostring
Serializes the data element tree to an XML source string. :param namespaces: is an optional mapping from namespace prefix to URI. \
xmlschema/dataobjects.py:337
↓ 7 callersMethod__setattr__
(self, name: str, value: Any)
xmlschema/validators/builders.py:183
↓ 7 callersMethod_lazy_iterparse
(self, fp: IOType)
xmlschema/resources/xml_loader.py:220
↓ 7 callersMethodbuiltin_types
Returns the XSD built-in types of the meta-schema.
xmlschema/validators/schemas.py:702
↓ 7 callersMethodcheck_copy_equivalence
Advances a model with an argument match condition and checks the expected error list.
tests/validators/test_models.py:116
↓ 7 callersFunctionetree_parse
(source, repeat=1)
tests/check_memory.py:81
↓ 7 callersFunctionfetch_namespaces
Fetches namespaces information from the XML data source. The argument *source* can be a string containing the XML document or file path or an
xmlschema/resources/fetchers.py:122
↓ 7 callersFunctionfetch_resource
Fetches a resource by trying to access it. If the resource is accessible returns its normalized URL, otherwise raises an `XMLResourceOSError`
xmlschema/resources/fetchers.py:22
↓ 7 callersFunctionfunc
(**kwargs)
profiling/profile_context.py:30
↓ 7 callersMethodget_annotation
Get the XSD annotation of the i-th pattern facet. :param i: an integer index. :returns: an XsdAnnotation object or `None`.
xmlschema/validators/facets.py:826
↓ 7 callersMethodget_binding
Gets data object binding for XSD element, creating a new one if it doesn't exist. :param bases: base classes to use for creating the
xmlschema/validators/elements.py:481
↓ 7 callersFunctionget_namespace_map
Returns a new and checked namespace map.
xmlschema/utils/qnames.py:198
↓ 7 callersMethodget_subgroups
Returns a list of the groups that represent the first path to the enclosed particle. Raises an `XMLSchemaModelError` if the argument
xmlschema/validators/groups.py:384
↓ 7 callersFunctionget_uri
Get the URI from components, according to https://datatracker.ietf.org/doc/html/rfc3986.
xmlschema/utils/urls.py:28
← previousnext →101–200 of 2,466, ranked by callers