aas_core_rc02.xmlization
Read and write AAS models as XML.
For reading, we provide different reading functions, each handling a different kind of input. All the reading functions operate in one pass, i.e., the source is read incrementally and the complete XML is not held in memory.
We provide the following four reading functions (where X represents the name of
the class):
X_from_iterparsereads from a stream of(event, element)tuples coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]. If you do not trust the source, please consider using defusedxml.ElementTree.X_from_streamreads from the given text stream.X_from_filereads from a file on disk.X_from_strreads from the given string.
The functions X_from_stream, X_from_file and X_from_str provide
an extra parameter, has_iterparse, which allows you to use a parsing library
different from xml.etree.ElementTree. For example, you can pass in
defusedxml.ElementTree.
All XML elements are expected to live in the NAMESPACE.
For writing, use the function aas_core3_rc02.xmlization.write() which
translates the instance of the model into an XML document and writes it in one pass
to the stream.
Here is an example usage how to de-serialize from a file:
import pathlib
import xml.etree.ElementTree as ET
import aas_core3_rc02.xmlization as aas_xmlization
path = pathlib.Path(...)
instance = aas_xmlization.read_extension_from_file(
path
)
# Do something with the ``instance``
Here is another code example where we serialize the instance:
import pathlib
import aas_core3_rc02.types as aas_types
import aas_core3_rc02.xmlization as aas_xmlization
instance = Extension(
... # some constructor arguments
)
pth = pathlib.Path(...)
with pth.open("wt") as fid:
aas_xmlization.write(instance, fid)
- aas_core3_rc02.xmlization.NAMESPACE = 'https://admin-shell.io/aas/3/0/RC02'
XML namespace in which all the elements are expected to reside
- class aas_core3_rc02.xmlization.Element(*args, **kwargs)[source]
Behave like
xml.etree.ElementTree.Element().- property attrib: Optional[Mapping[str, str]]
Attributes of the element
- property text: Optional[str]
Text content of the element
- property tail: Optional[str]
Tail text of the element
- property tag: str
Tag of the element; with a namespace provided as a
{...}prefix
- __init__(*args, **kwargs)
- class aas_core3_rc02.xmlization.HasIterparse(*args, **kwargs)[source]
Parse an XML document incrementally.
- iterparse(source: TextIO, events: Optional[Sequence[str]] = None) Iterator[Tuple[str, Element]][source]
Behave like
xml.etree.ElementTree.iterparse().
- __init__(*args, **kwargs)
- class aas_core3_rc02.xmlization.ElementSegment(element: Element)[source]
Represent an element on a path to the erroneous value.
- __str__() str[source]
Render the segment as a tag without the namespace.
We deliberately omit the namespace in the tag names. If you want to actually query with the resulting XPath, you have to insert the namespaces manually. We did not know how to include the namespace in a meaningful way, as XPath assumes namespace prefixes to be defined outside of the document. At least the path thus rendered is informative, and you should be able to descend it manually.
- class aas_core3_rc02.xmlization.IndexSegment(element: Element, index: int)[source]
Represent an element in a sequence on a path to the erroneous value.
- index: Final[int]
Index of the element in the sequence
- class aas_core3_rc02.xmlization.Path[source]
Represent the relative path to the erroneous element.
- property segments: Sequence[Union[ElementSegment, IndexSegment]]
Get the segments of the path.
- exception aas_core3_rc02.xmlization.DeserializationException(cause: str)[source]
Signal that the XML de-serialization could not be performed.
- cause: Final[str]
Human-readable explanation of the exception’s cause
- aas_core3_rc02.xmlization.has_semantics_from_iterparse(iterator: Iterator[Tuple[str, Element]]) HasSemantics[source]
Read an instance of
types.HasSemanticsfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.has_semantics_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasSemanticsread fromiterator
- aas_core3_rc02.xmlization.has_semantics_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasSemantics[source]
Read an instance of
types.HasSemanticsfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.has_semantics_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.HasSemanticsin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasSemanticsread fromstream
- aas_core3_rc02.xmlization.has_semantics_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasSemantics[source]
Read an instance of
types.HasSemanticsfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.has_semantics_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.HasSemanticsin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasSemanticsread frompath
- aas_core3_rc02.xmlization.has_semantics_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasSemantics[source]
Read an instance of
types.HasSemanticsfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.has_semantics_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.HasSemanticsin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasSemanticsread fromtext
- aas_core3_rc02.xmlization.extension_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Extension[source]
Read an instance of
types.Extensionfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.extension_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Extensionread fromiterator
- aas_core3_rc02.xmlization.extension_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Extension[source]
Read an instance of
types.Extensionfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.extension_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Extensionin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Extensionread fromstream
- aas_core3_rc02.xmlization.extension_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Extension[source]
Read an instance of
types.Extensionfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.extension_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Extensionin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Extensionread frompath
- aas_core3_rc02.xmlization.extension_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Extension[source]
Read an instance of
types.Extensionfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.extension_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Extensionin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Extensionread fromtext
- aas_core3_rc02.xmlization.has_extensions_from_iterparse(iterator: Iterator[Tuple[str, Element]]) HasExtensions[source]
Read an instance of
types.HasExtensionsfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.has_extensions_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasExtensionsread fromiterator
- aas_core3_rc02.xmlization.has_extensions_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasExtensions[source]
Read an instance of
types.HasExtensionsfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.has_extensions_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.HasExtensionsin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasExtensionsread fromstream
- aas_core3_rc02.xmlization.has_extensions_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasExtensions[source]
Read an instance of
types.HasExtensionsfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.has_extensions_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.HasExtensionsin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasExtensionsread frompath
- aas_core3_rc02.xmlization.has_extensions_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasExtensions[source]
Read an instance of
types.HasExtensionsfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.has_extensions_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.HasExtensionsin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasExtensionsread fromtext
- aas_core3_rc02.xmlization.referable_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Referable[source]
Read an instance of
types.Referablefrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.referable_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Referableread fromiterator
- aas_core3_rc02.xmlization.referable_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Referable[source]
Read an instance of
types.Referablefrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.referable_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Referablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Referableread fromstream
- aas_core3_rc02.xmlization.referable_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Referable[source]
Read an instance of
types.Referablefrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.referable_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Referablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Referableread frompath
- aas_core3_rc02.xmlization.referable_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Referable[source]
Read an instance of
types.Referablefrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.referable_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Referablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Referableread fromtext
- aas_core3_rc02.xmlization.identifiable_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Identifiable[source]
Read an instance of
types.Identifiablefrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.identifiable_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Identifiableread fromiterator
- aas_core3_rc02.xmlization.identifiable_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Identifiable[source]
Read an instance of
types.Identifiablefrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.identifiable_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Identifiablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Identifiableread fromstream
- aas_core3_rc02.xmlization.identifiable_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Identifiable[source]
Read an instance of
types.Identifiablefrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.identifiable_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Identifiablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Identifiableread frompath
- aas_core3_rc02.xmlization.identifiable_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Identifiable[source]
Read an instance of
types.Identifiablefrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.identifiable_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Identifiablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Identifiableread fromtext
- aas_core3_rc02.xmlization.has_kind_from_iterparse(iterator: Iterator[Tuple[str, Element]]) HasKind[source]
Read an instance of
types.HasKindfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.has_kind_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasKindread fromiterator
- aas_core3_rc02.xmlization.has_kind_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasKind[source]
Read an instance of
types.HasKindfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.has_kind_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.HasKindin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasKindread fromstream
- aas_core3_rc02.xmlization.has_kind_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasKind[source]
Read an instance of
types.HasKindfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.has_kind_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.HasKindin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasKindread frompath
- aas_core3_rc02.xmlization.has_kind_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasKind[source]
Read an instance of
types.HasKindfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.has_kind_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.HasKindin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasKindread fromtext
- aas_core3_rc02.xmlization.has_data_specification_from_iterparse(iterator: Iterator[Tuple[str, Element]]) HasDataSpecification[source]
Read an instance of
types.HasDataSpecificationfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.has_data_specification_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasDataSpecificationread fromiterator
- aas_core3_rc02.xmlization.has_data_specification_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasDataSpecification[source]
Read an instance of
types.HasDataSpecificationfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.has_data_specification_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.HasDataSpecificationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasDataSpecificationread fromstream
- aas_core3_rc02.xmlization.has_data_specification_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasDataSpecification[source]
Read an instance of
types.HasDataSpecificationfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.has_data_specification_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.HasDataSpecificationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasDataSpecificationread frompath
- aas_core3_rc02.xmlization.has_data_specification_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) HasDataSpecification[source]
Read an instance of
types.HasDataSpecificationfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.has_data_specification_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.HasDataSpecificationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.HasDataSpecificationread fromtext
- aas_core3_rc02.xmlization.administrative_information_from_iterparse(iterator: Iterator[Tuple[str, Element]]) AdministrativeInformation[source]
Read an instance of
types.AdministrativeInformationfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.administrative_information_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AdministrativeInformationread fromiterator
- aas_core3_rc02.xmlization.administrative_information_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AdministrativeInformation[source]
Read an instance of
types.AdministrativeInformationfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.administrative_information_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.AdministrativeInformationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AdministrativeInformationread fromstream
- aas_core3_rc02.xmlization.administrative_information_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AdministrativeInformation[source]
Read an instance of
types.AdministrativeInformationfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.administrative_information_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.AdministrativeInformationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AdministrativeInformationread frompath
- aas_core3_rc02.xmlization.administrative_information_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AdministrativeInformation[source]
Read an instance of
types.AdministrativeInformationfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.administrative_information_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.AdministrativeInformationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AdministrativeInformationread fromtext
- aas_core3_rc02.xmlization.qualifiable_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Qualifiable[source]
Read an instance of
types.Qualifiablefrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.qualifiable_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Qualifiableread fromiterator
- aas_core3_rc02.xmlization.qualifiable_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Qualifiable[source]
Read an instance of
types.Qualifiablefrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.qualifiable_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Qualifiablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Qualifiableread fromstream
- aas_core3_rc02.xmlization.qualifiable_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Qualifiable[source]
Read an instance of
types.Qualifiablefrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.qualifiable_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Qualifiablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Qualifiableread frompath
- aas_core3_rc02.xmlization.qualifiable_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Qualifiable[source]
Read an instance of
types.Qualifiablefrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.qualifiable_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Qualifiablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Qualifiableread fromtext
- aas_core3_rc02.xmlization.qualifier_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Qualifier[source]
Read an instance of
types.Qualifierfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.qualifier_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Qualifierread fromiterator
- aas_core3_rc02.xmlization.qualifier_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Qualifier[source]
Read an instance of
types.Qualifierfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.qualifier_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Qualifierin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Qualifierread fromstream
- aas_core3_rc02.xmlization.qualifier_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Qualifier[source]
Read an instance of
types.Qualifierfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.qualifier_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Qualifierin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Qualifierread frompath
- aas_core3_rc02.xmlization.qualifier_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Qualifier[source]
Read an instance of
types.Qualifierfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.qualifier_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Qualifierin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Qualifierread fromtext
- aas_core3_rc02.xmlization.asset_administration_shell_from_iterparse(iterator: Iterator[Tuple[str, Element]]) AssetAdministrationShell[source]
Read an instance of
types.AssetAdministrationShellfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.asset_administration_shell_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AssetAdministrationShellread fromiterator
- aas_core3_rc02.xmlization.asset_administration_shell_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AssetAdministrationShell[source]
Read an instance of
types.AssetAdministrationShellfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.asset_administration_shell_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.AssetAdministrationShellin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AssetAdministrationShellread fromstream
- aas_core3_rc02.xmlization.asset_administration_shell_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AssetAdministrationShell[source]
Read an instance of
types.AssetAdministrationShellfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.asset_administration_shell_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.AssetAdministrationShellin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AssetAdministrationShellread frompath
- aas_core3_rc02.xmlization.asset_administration_shell_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AssetAdministrationShell[source]
Read an instance of
types.AssetAdministrationShellfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.asset_administration_shell_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.AssetAdministrationShellin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AssetAdministrationShellread fromtext
- aas_core3_rc02.xmlization.asset_information_from_iterparse(iterator: Iterator[Tuple[str, Element]]) AssetInformation[source]
Read an instance of
types.AssetInformationfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.asset_information_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AssetInformationread fromiterator
- aas_core3_rc02.xmlization.asset_information_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AssetInformation[source]
Read an instance of
types.AssetInformationfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.asset_information_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.AssetInformationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AssetInformationread fromstream
- aas_core3_rc02.xmlization.asset_information_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AssetInformation[source]
Read an instance of
types.AssetInformationfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.asset_information_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.AssetInformationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AssetInformationread frompath
- aas_core3_rc02.xmlization.asset_information_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AssetInformation[source]
Read an instance of
types.AssetInformationfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.asset_information_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.AssetInformationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AssetInformationread fromtext
- aas_core3_rc02.xmlization.resource_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Resource[source]
Read an instance of
types.Resourcefrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.resource_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Resourceread fromiterator
- aas_core3_rc02.xmlization.resource_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Resource[source]
Read an instance of
types.Resourcefrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.resource_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Resourcein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Resourceread fromstream
- aas_core3_rc02.xmlization.resource_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Resource[source]
Read an instance of
types.Resourcefrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.resource_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Resourcein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Resourceread frompath
- aas_core3_rc02.xmlization.resource_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Resource[source]
Read an instance of
types.Resourcefrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.resource_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Resourcein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Resourceread fromtext
- aas_core3_rc02.xmlization.specific_asset_id_from_iterparse(iterator: Iterator[Tuple[str, Element]]) SpecificAssetId[source]
Read an instance of
types.SpecificAssetIdfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.specific_asset_id_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SpecificAssetIdread fromiterator
- aas_core3_rc02.xmlization.specific_asset_id_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SpecificAssetId[source]
Read an instance of
types.SpecificAssetIdfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.specific_asset_id_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.SpecificAssetIdin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SpecificAssetIdread fromstream
- aas_core3_rc02.xmlization.specific_asset_id_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SpecificAssetId[source]
Read an instance of
types.SpecificAssetIdfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.specific_asset_id_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.SpecificAssetIdin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SpecificAssetIdread frompath
- aas_core3_rc02.xmlization.specific_asset_id_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SpecificAssetId[source]
Read an instance of
types.SpecificAssetIdfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.specific_asset_id_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.SpecificAssetIdin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SpecificAssetIdread fromtext
- aas_core3_rc02.xmlization.submodel_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Submodel[source]
Read an instance of
types.Submodelfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.submodel_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Submodelread fromiterator
- aas_core3_rc02.xmlization.submodel_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Submodel[source]
Read an instance of
types.Submodelfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.submodel_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Submodelin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Submodelread fromstream
- aas_core3_rc02.xmlization.submodel_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Submodel[source]
Read an instance of
types.Submodelfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.submodel_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Submodelin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Submodelread frompath
- aas_core3_rc02.xmlization.submodel_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Submodel[source]
Read an instance of
types.Submodelfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.submodel_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Submodelin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Submodelread fromtext
- aas_core3_rc02.xmlization.submodel_element_from_iterparse(iterator: Iterator[Tuple[str, Element]]) SubmodelElement[source]
Read an instance of
types.SubmodelElementfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.submodel_element_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementread fromiterator
- aas_core3_rc02.xmlization.submodel_element_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SubmodelElement[source]
Read an instance of
types.SubmodelElementfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.submodel_element_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.SubmodelElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementread fromstream
- aas_core3_rc02.xmlization.submodel_element_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SubmodelElement[source]
Read an instance of
types.SubmodelElementfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.submodel_element_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.SubmodelElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementread frompath
- aas_core3_rc02.xmlization.submodel_element_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SubmodelElement[source]
Read an instance of
types.SubmodelElementfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.submodel_element_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.SubmodelElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementread fromtext
- aas_core3_rc02.xmlization.relationship_element_from_iterparse(iterator: Iterator[Tuple[str, Element]]) RelationshipElement[source]
Read an instance of
types.RelationshipElementfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.relationship_element_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.RelationshipElementread fromiterator
- aas_core3_rc02.xmlization.relationship_element_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) RelationshipElement[source]
Read an instance of
types.RelationshipElementfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.relationship_element_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.RelationshipElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.RelationshipElementread fromstream
- aas_core3_rc02.xmlization.relationship_element_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) RelationshipElement[source]
Read an instance of
types.RelationshipElementfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.relationship_element_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.RelationshipElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.RelationshipElementread frompath
- aas_core3_rc02.xmlization.relationship_element_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) RelationshipElement[source]
Read an instance of
types.RelationshipElementfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.relationship_element_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.RelationshipElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.RelationshipElementread fromtext
- aas_core3_rc02.xmlization.submodel_element_list_from_iterparse(iterator: Iterator[Tuple[str, Element]]) SubmodelElementList[source]
Read an instance of
types.SubmodelElementListfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.submodel_element_list_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementListread fromiterator
- aas_core3_rc02.xmlization.submodel_element_list_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SubmodelElementList[source]
Read an instance of
types.SubmodelElementListfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.submodel_element_list_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.SubmodelElementListin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementListread fromstream
- aas_core3_rc02.xmlization.submodel_element_list_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SubmodelElementList[source]
Read an instance of
types.SubmodelElementListfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.submodel_element_list_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.SubmodelElementListin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementListread frompath
- aas_core3_rc02.xmlization.submodel_element_list_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SubmodelElementList[source]
Read an instance of
types.SubmodelElementListfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.submodel_element_list_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.SubmodelElementListin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementListread fromtext
- aas_core3_rc02.xmlization.submodel_element_collection_from_iterparse(iterator: Iterator[Tuple[str, Element]]) SubmodelElementCollection[source]
Read an instance of
types.SubmodelElementCollectionfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.submodel_element_collection_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementCollectionread fromiterator
- aas_core3_rc02.xmlization.submodel_element_collection_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SubmodelElementCollection[source]
Read an instance of
types.SubmodelElementCollectionfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.submodel_element_collection_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.SubmodelElementCollectionin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementCollectionread fromstream
- aas_core3_rc02.xmlization.submodel_element_collection_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SubmodelElementCollection[source]
Read an instance of
types.SubmodelElementCollectionfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.submodel_element_collection_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.SubmodelElementCollectionin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementCollectionread frompath
- aas_core3_rc02.xmlization.submodel_element_collection_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) SubmodelElementCollection[source]
Read an instance of
types.SubmodelElementCollectionfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.submodel_element_collection_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.SubmodelElementCollectionin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.SubmodelElementCollectionread fromtext
- aas_core3_rc02.xmlization.data_element_from_iterparse(iterator: Iterator[Tuple[str, Element]]) DataElement[source]
Read an instance of
types.DataElementfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.data_element_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataElementread fromiterator
- aas_core3_rc02.xmlization.data_element_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataElement[source]
Read an instance of
types.DataElementfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.data_element_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.DataElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataElementread fromstream
- aas_core3_rc02.xmlization.data_element_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataElement[source]
Read an instance of
types.DataElementfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.data_element_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.DataElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataElementread frompath
- aas_core3_rc02.xmlization.data_element_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataElement[source]
Read an instance of
types.DataElementfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.data_element_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.DataElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataElementread fromtext
- aas_core3_rc02.xmlization.property_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Property[source]
Read an instance of
types.Propertyfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.property_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Propertyread fromiterator
- aas_core3_rc02.xmlization.property_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Property[source]
Read an instance of
types.Propertyfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.property_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Propertyin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Propertyread fromstream
- aas_core3_rc02.xmlization.property_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Property[source]
Read an instance of
types.Propertyfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.property_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Propertyin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Propertyread frompath
- aas_core3_rc02.xmlization.property_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Property[source]
Read an instance of
types.Propertyfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.property_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Propertyin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Propertyread fromtext
- aas_core3_rc02.xmlization.multi_language_property_from_iterparse(iterator: Iterator[Tuple[str, Element]]) MultiLanguageProperty[source]
Read an instance of
types.MultiLanguagePropertyfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.multi_language_property_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.MultiLanguagePropertyread fromiterator
- aas_core3_rc02.xmlization.multi_language_property_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) MultiLanguageProperty[source]
Read an instance of
types.MultiLanguagePropertyfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.multi_language_property_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.MultiLanguagePropertyin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.MultiLanguagePropertyread fromstream
- aas_core3_rc02.xmlization.multi_language_property_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) MultiLanguageProperty[source]
Read an instance of
types.MultiLanguagePropertyfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.multi_language_property_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.MultiLanguagePropertyin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.MultiLanguagePropertyread frompath
- aas_core3_rc02.xmlization.multi_language_property_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) MultiLanguageProperty[source]
Read an instance of
types.MultiLanguagePropertyfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.multi_language_property_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.MultiLanguagePropertyin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.MultiLanguagePropertyread fromtext
- aas_core3_rc02.xmlization.range_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Range[source]
Read an instance of
types.Rangefrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.range_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Rangeread fromiterator
- aas_core3_rc02.xmlization.range_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Range[source]
Read an instance of
types.Rangefrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.range_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Rangein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Rangeread fromstream
- aas_core3_rc02.xmlization.range_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Range[source]
Read an instance of
types.Rangefrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.range_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Rangein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Rangeread frompath
- aas_core3_rc02.xmlization.range_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Range[source]
Read an instance of
types.Rangefrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.range_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Rangein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Rangeread fromtext
- aas_core3_rc02.xmlization.reference_element_from_iterparse(iterator: Iterator[Tuple[str, Element]]) ReferenceElement[source]
Read an instance of
types.ReferenceElementfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.reference_element_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ReferenceElementread fromiterator
- aas_core3_rc02.xmlization.reference_element_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ReferenceElement[source]
Read an instance of
types.ReferenceElementfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.reference_element_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.ReferenceElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ReferenceElementread fromstream
- aas_core3_rc02.xmlization.reference_element_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ReferenceElement[source]
Read an instance of
types.ReferenceElementfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.reference_element_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.ReferenceElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ReferenceElementread frompath
- aas_core3_rc02.xmlization.reference_element_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ReferenceElement[source]
Read an instance of
types.ReferenceElementfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.reference_element_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.ReferenceElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ReferenceElementread fromtext
- aas_core3_rc02.xmlization.blob_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Blob[source]
Read an instance of
types.Blobfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.blob_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Blobread fromiterator
- aas_core3_rc02.xmlization.blob_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Blob[source]
Read an instance of
types.Blobfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.blob_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Blobin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Blobread fromstream
- aas_core3_rc02.xmlization.blob_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Blob[source]
Read an instance of
types.Blobfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.blob_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Blobin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Blobread frompath
- aas_core3_rc02.xmlization.blob_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Blob[source]
Read an instance of
types.Blobfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.blob_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Blobin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Blobread fromtext
- aas_core3_rc02.xmlization.file_from_iterparse(iterator: Iterator[Tuple[str, Element]]) File[source]
Read an instance of
types.Filefrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.file_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Fileread fromiterator
- aas_core3_rc02.xmlization.file_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) File[source]
Read an instance of
types.Filefrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.file_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Filein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Fileread fromstream
- aas_core3_rc02.xmlization.file_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) File[source]
Read an instance of
types.Filefrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.file_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Filein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Fileread frompath
- aas_core3_rc02.xmlization.file_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) File[source]
Read an instance of
types.Filefrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.file_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Filein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Fileread fromtext
- aas_core3_rc02.xmlization.annotated_relationship_element_from_iterparse(iterator: Iterator[Tuple[str, Element]]) AnnotatedRelationshipElement[source]
Read an instance of
types.AnnotatedRelationshipElementfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.annotated_relationship_element_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AnnotatedRelationshipElementread fromiterator
- aas_core3_rc02.xmlization.annotated_relationship_element_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AnnotatedRelationshipElement[source]
Read an instance of
types.AnnotatedRelationshipElementfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.annotated_relationship_element_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.AnnotatedRelationshipElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AnnotatedRelationshipElementread fromstream
- aas_core3_rc02.xmlization.annotated_relationship_element_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AnnotatedRelationshipElement[source]
Read an instance of
types.AnnotatedRelationshipElementfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.annotated_relationship_element_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.AnnotatedRelationshipElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AnnotatedRelationshipElementread frompath
- aas_core3_rc02.xmlization.annotated_relationship_element_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) AnnotatedRelationshipElement[source]
Read an instance of
types.AnnotatedRelationshipElementfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.annotated_relationship_element_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.AnnotatedRelationshipElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.AnnotatedRelationshipElementread fromtext
- aas_core3_rc02.xmlization.entity_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Entity[source]
Read an instance of
types.Entityfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.entity_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Entityread fromiterator
- aas_core3_rc02.xmlization.entity_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Entity[source]
Read an instance of
types.Entityfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.entity_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Entityin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Entityread fromstream
- aas_core3_rc02.xmlization.entity_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Entity[source]
Read an instance of
types.Entityfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.entity_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Entityin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Entityread frompath
- aas_core3_rc02.xmlization.entity_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Entity[source]
Read an instance of
types.Entityfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.entity_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Entityin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Entityread fromtext
- aas_core3_rc02.xmlization.event_payload_from_iterparse(iterator: Iterator[Tuple[str, Element]]) EventPayload[source]
Read an instance of
types.EventPayloadfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.event_payload_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EventPayloadread fromiterator
- aas_core3_rc02.xmlization.event_payload_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) EventPayload[source]
Read an instance of
types.EventPayloadfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.event_payload_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.EventPayloadin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EventPayloadread fromstream
- aas_core3_rc02.xmlization.event_payload_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) EventPayload[source]
Read an instance of
types.EventPayloadfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.event_payload_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.EventPayloadin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EventPayloadread frompath
- aas_core3_rc02.xmlization.event_payload_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) EventPayload[source]
Read an instance of
types.EventPayloadfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.event_payload_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.EventPayloadin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EventPayloadread fromtext
- aas_core3_rc02.xmlization.event_element_from_iterparse(iterator: Iterator[Tuple[str, Element]]) EventElement[source]
Read an instance of
types.EventElementfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.event_element_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EventElementread fromiterator
- aas_core3_rc02.xmlization.event_element_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) EventElement[source]
Read an instance of
types.EventElementfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.event_element_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.EventElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EventElementread fromstream
- aas_core3_rc02.xmlization.event_element_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) EventElement[source]
Read an instance of
types.EventElementfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.event_element_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.EventElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EventElementread frompath
- aas_core3_rc02.xmlization.event_element_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) EventElement[source]
Read an instance of
types.EventElementfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.event_element_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.EventElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EventElementread fromtext
- aas_core3_rc02.xmlization.basic_event_element_from_iterparse(iterator: Iterator[Tuple[str, Element]]) BasicEventElement[source]
Read an instance of
types.BasicEventElementfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.basic_event_element_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.BasicEventElementread fromiterator
- aas_core3_rc02.xmlization.basic_event_element_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) BasicEventElement[source]
Read an instance of
types.BasicEventElementfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.basic_event_element_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.BasicEventElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.BasicEventElementread fromstream
- aas_core3_rc02.xmlization.basic_event_element_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) BasicEventElement[source]
Read an instance of
types.BasicEventElementfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.basic_event_element_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.BasicEventElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.BasicEventElementread frompath
- aas_core3_rc02.xmlization.basic_event_element_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) BasicEventElement[source]
Read an instance of
types.BasicEventElementfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.basic_event_element_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.BasicEventElementin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.BasicEventElementread fromtext
- aas_core3_rc02.xmlization.operation_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Operation[source]
Read an instance of
types.Operationfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.operation_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Operationread fromiterator
- aas_core3_rc02.xmlization.operation_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Operation[source]
Read an instance of
types.Operationfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.operation_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Operationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Operationread fromstream
- aas_core3_rc02.xmlization.operation_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Operation[source]
Read an instance of
types.Operationfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.operation_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Operationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Operationread frompath
- aas_core3_rc02.xmlization.operation_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Operation[source]
Read an instance of
types.Operationfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.operation_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Operationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Operationread fromtext
- aas_core3_rc02.xmlization.operation_variable_from_iterparse(iterator: Iterator[Tuple[str, Element]]) OperationVariable[source]
Read an instance of
types.OperationVariablefrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.operation_variable_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.OperationVariableread fromiterator
- aas_core3_rc02.xmlization.operation_variable_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) OperationVariable[source]
Read an instance of
types.OperationVariablefrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.operation_variable_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.OperationVariablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.OperationVariableread fromstream
- aas_core3_rc02.xmlization.operation_variable_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) OperationVariable[source]
Read an instance of
types.OperationVariablefrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.operation_variable_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.OperationVariablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.OperationVariableread frompath
- aas_core3_rc02.xmlization.operation_variable_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) OperationVariable[source]
Read an instance of
types.OperationVariablefrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.operation_variable_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.OperationVariablein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.OperationVariableread fromtext
- aas_core3_rc02.xmlization.capability_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Capability[source]
Read an instance of
types.Capabilityfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.capability_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Capabilityread fromiterator
- aas_core3_rc02.xmlization.capability_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Capability[source]
Read an instance of
types.Capabilityfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.capability_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Capabilityin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Capabilityread fromstream
- aas_core3_rc02.xmlization.capability_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Capability[source]
Read an instance of
types.Capabilityfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.capability_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Capabilityin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Capabilityread frompath
- aas_core3_rc02.xmlization.capability_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Capability[source]
Read an instance of
types.Capabilityfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.capability_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Capabilityin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Capabilityread fromtext
- aas_core3_rc02.xmlization.concept_description_from_iterparse(iterator: Iterator[Tuple[str, Element]]) ConceptDescription[source]
Read an instance of
types.ConceptDescriptionfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.concept_description_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ConceptDescriptionread fromiterator
- aas_core3_rc02.xmlization.concept_description_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ConceptDescription[source]
Read an instance of
types.ConceptDescriptionfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.concept_description_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.ConceptDescriptionin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ConceptDescriptionread fromstream
- aas_core3_rc02.xmlization.concept_description_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ConceptDescription[source]
Read an instance of
types.ConceptDescriptionfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.concept_description_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.ConceptDescriptionin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ConceptDescriptionread frompath
- aas_core3_rc02.xmlization.concept_description_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ConceptDescription[source]
Read an instance of
types.ConceptDescriptionfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.concept_description_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.ConceptDescriptionin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ConceptDescriptionread fromtext
- aas_core3_rc02.xmlization.reference_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Reference[source]
Read an instance of
types.Referencefrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.reference_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Referenceread fromiterator
- aas_core3_rc02.xmlization.reference_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Reference[source]
Read an instance of
types.Referencefrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.reference_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Referencein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Referenceread fromstream
- aas_core3_rc02.xmlization.reference_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Reference[source]
Read an instance of
types.Referencefrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.reference_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Referencein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Referenceread frompath
- aas_core3_rc02.xmlization.reference_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Reference[source]
Read an instance of
types.Referencefrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.reference_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Referencein XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Referenceread fromtext
- aas_core3_rc02.xmlization.key_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Key[source]
Read an instance of
types.Keyfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.key_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Keyread fromiterator
- aas_core3_rc02.xmlization.key_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Key[source]
Read an instance of
types.Keyfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.key_from_stream( stream ) # Do something with the ``instance``
- Parameters
has_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Keyread fromstream
- aas_core3_rc02.xmlization.key_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Key[source]
Read an instance of
types.Keyfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.key_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Keyin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Keyread frompath
- aas_core3_rc02.xmlization.key_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Key[source]
Read an instance of
types.Keyfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.key_from_str( text ) # Do something with the ``instance``
- Parameters
has_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Keyread fromtext
- aas_core3_rc02.xmlization.lang_string_from_iterparse(iterator: Iterator[Tuple[str, Element]]) LangString[source]
Read an instance of
types.LangStringfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.lang_string_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.LangStringread fromiterator
- aas_core3_rc02.xmlization.lang_string_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) LangString[source]
Read an instance of
types.LangStringfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.lang_string_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.LangStringin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.LangStringread fromstream
- aas_core3_rc02.xmlization.lang_string_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) LangString[source]
Read an instance of
types.LangStringfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.lang_string_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.LangStringin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.LangStringread frompath
- aas_core3_rc02.xmlization.lang_string_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) LangString[source]
Read an instance of
types.LangStringfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.lang_string_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.LangStringin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.LangStringread fromtext
- aas_core3_rc02.xmlization.environment_from_iterparse(iterator: Iterator[Tuple[str, Element]]) Environment[source]
Read an instance of
types.Environmentfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.environment_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Environmentread fromiterator
- aas_core3_rc02.xmlization.environment_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Environment[source]
Read an instance of
types.Environmentfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.environment_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.Environmentin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Environmentread fromstream
- aas_core3_rc02.xmlization.environment_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Environment[source]
Read an instance of
types.Environmentfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.environment_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.Environmentin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Environmentread frompath
- aas_core3_rc02.xmlization.environment_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) Environment[source]
Read an instance of
types.Environmentfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.environment_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.Environmentin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.Environmentread fromtext
- aas_core3_rc02.xmlization.data_specification_content_from_iterparse(iterator: Iterator[Tuple[str, Element]]) DataSpecificationContent[source]
Read an instance of
types.DataSpecificationContentfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.data_specification_content_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationContentread fromiterator
- aas_core3_rc02.xmlization.data_specification_content_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataSpecificationContent[source]
Read an instance of
types.DataSpecificationContentfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.data_specification_content_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.DataSpecificationContentin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationContentread fromstream
- aas_core3_rc02.xmlization.data_specification_content_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataSpecificationContent[source]
Read an instance of
types.DataSpecificationContentfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.data_specification_content_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.DataSpecificationContentin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationContentread frompath
- aas_core3_rc02.xmlization.data_specification_content_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataSpecificationContent[source]
Read an instance of
types.DataSpecificationContentfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.data_specification_content_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.DataSpecificationContentin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationContentread fromtext
- aas_core3_rc02.xmlization.embedded_data_specification_from_iterparse(iterator: Iterator[Tuple[str, Element]]) EmbeddedDataSpecification[source]
Read an instance of
types.EmbeddedDataSpecificationfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.embedded_data_specification_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EmbeddedDataSpecificationread fromiterator
- aas_core3_rc02.xmlization.embedded_data_specification_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) EmbeddedDataSpecification[source]
Read an instance of
types.EmbeddedDataSpecificationfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.embedded_data_specification_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.EmbeddedDataSpecificationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EmbeddedDataSpecificationread fromstream
- aas_core3_rc02.xmlization.embedded_data_specification_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) EmbeddedDataSpecification[source]
Read an instance of
types.EmbeddedDataSpecificationfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.embedded_data_specification_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.EmbeddedDataSpecificationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EmbeddedDataSpecificationread frompath
- aas_core3_rc02.xmlization.embedded_data_specification_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) EmbeddedDataSpecification[source]
Read an instance of
types.EmbeddedDataSpecificationfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.embedded_data_specification_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.EmbeddedDataSpecificationin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.EmbeddedDataSpecificationread fromtext
- aas_core3_rc02.xmlization.value_reference_pair_from_iterparse(iterator: Iterator[Tuple[str, Element]]) ValueReferencePair[source]
Read an instance of
types.ValueReferencePairfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.value_reference_pair_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ValueReferencePairread fromiterator
- aas_core3_rc02.xmlization.value_reference_pair_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ValueReferencePair[source]
Read an instance of
types.ValueReferencePairfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.value_reference_pair_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.ValueReferencePairin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ValueReferencePairread fromstream
- aas_core3_rc02.xmlization.value_reference_pair_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ValueReferencePair[source]
Read an instance of
types.ValueReferencePairfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.value_reference_pair_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.ValueReferencePairin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ValueReferencePairread frompath
- aas_core3_rc02.xmlization.value_reference_pair_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ValueReferencePair[source]
Read an instance of
types.ValueReferencePairfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.value_reference_pair_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.ValueReferencePairin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ValueReferencePairread fromtext
- aas_core3_rc02.xmlization.value_list_from_iterparse(iterator: Iterator[Tuple[str, Element]]) ValueList[source]
Read an instance of
types.ValueListfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.value_list_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ValueListread fromiterator
- aas_core3_rc02.xmlization.value_list_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ValueList[source]
Read an instance of
types.ValueListfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.value_list_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.ValueListin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ValueListread fromstream
- aas_core3_rc02.xmlization.value_list_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ValueList[source]
Read an instance of
types.ValueListfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.value_list_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.ValueListin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ValueListread frompath
- aas_core3_rc02.xmlization.value_list_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) ValueList[source]
Read an instance of
types.ValueListfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.value_list_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.ValueListin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.ValueListread fromtext
- aas_core3_rc02.xmlization.data_specification_iec_61360_from_iterparse(iterator: Iterator[Tuple[str, Element]]) DataSpecificationIEC61360[source]
Read an instance of
types.DataSpecificationIEC61360from theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.data_specification_iec_61360_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationIEC61360read fromiterator
- aas_core3_rc02.xmlization.data_specification_iec_61360_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataSpecificationIEC61360[source]
Read an instance of
types.DataSpecificationIEC61360from thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.data_specification_iec_61360_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.DataSpecificationIEC61360in XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationIEC61360read fromstream
- aas_core3_rc02.xmlization.data_specification_iec_61360_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataSpecificationIEC61360[source]
Read an instance of
types.DataSpecificationIEC61360from thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.data_specification_iec_61360_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.DataSpecificationIEC61360in XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationIEC61360read frompath
- aas_core3_rc02.xmlization.data_specification_iec_61360_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataSpecificationIEC61360[source]
Read an instance of
types.DataSpecificationIEC61360from thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.data_specification_iec_61360_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.DataSpecificationIEC61360in XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationIEC61360read fromtext
- aas_core3_rc02.xmlization.data_specification_physical_unit_from_iterparse(iterator: Iterator[Tuple[str, Element]]) DataSpecificationPhysicalUnit[source]
Read an instance of
types.DataSpecificationPhysicalUnitfrom theiterator.Example usage:
import pathlib import xml.etree.ElementTree as ET import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) with path.open("rt") as fid: iterator = ET.iterparse( source=fid, events=['start', 'end'] ) instance = aas_xmlization.data_specification_physical_unit_from_iterparse( iterator ) # Do something with the ``instance``
- Parameters
iterator¶ – Input stream of
(event, element)coming fromxml.etree.ElementTree.iterparse()with the argumentevents=["start", "end"]- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationPhysicalUnitread fromiterator
- aas_core3_rc02.xmlization.data_specification_physical_unit_from_stream(stream: ~typing.TextIO, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataSpecificationPhysicalUnit[source]
Read an instance of
types.DataSpecificationPhysicalUnitfrom thestream.Example usage:
import aas_core3_rc02.xmlization as aas_xmlization with open_some_stream_over_network(...) as stream: instance = aas_xmlization.data_specification_physical_unit_from_stream( stream ) # Do something with the ``instance``
- Parameters
stream¶ – representing an instance of
types.DataSpecificationPhysicalUnitin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationPhysicalUnitread fromstream
- aas_core3_rc02.xmlization.data_specification_physical_unit_from_file(path: ~os.PathLike, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataSpecificationPhysicalUnit[source]
Read an instance of
types.DataSpecificationPhysicalUnitfrom thepath.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization path = pathlib.Path(...) instance = aas_xmlization.data_specification_physical_unit_from_file( path ) # Do something with the ``instance``
- Parameters
path¶ – to the file representing an instance of
types.DataSpecificationPhysicalUnitin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationPhysicalUnitread frompath
- aas_core3_rc02.xmlization.data_specification_physical_unit_from_str(text: str, has_iterparse: ~aas_core3_rc02.xmlization.HasIterparse = <module 'xml.etree.ElementTree' from '/home/docs/.pyenv/versions/3.8.6/lib/python3.8/xml/etree/ElementTree.py'>) DataSpecificationPhysicalUnit[source]
Read an instance of
types.DataSpecificationPhysicalUnitfrom thetext.Example usage:
import pathlib import aas_core3_rc02.xmlization as aas_xmlization text = "<...>...</...>" instance = aas_xmlization.data_specification_physical_unit_from_str( text ) # Do something with the ``instance``
- Parameters
text¶ – representing an instance of
types.DataSpecificationPhysicalUnitin XMLhas_iterparse¶ –
Module containing
iterparsefunction.Default is to use
xml.etree.ElementTreefrom the standard library. If you have to deal with malicious input, consider using a library such as defusedxml.ElementTree.
- Raise
DeserializationExceptionif unexpected input- Returns
Instance of
types.DataSpecificationPhysicalUnitread fromtext
- aas_core3_rc02.xmlization.write(instance: Class, stream: TextIO) None[source]
Write the XML representation of
instancetostream.Example usage:
import pathlib import aas_core3_rc02.types as aas_types import aas_core3_rc02.xmlization as aas_xmlization instance = Extension( ... # some constructor arguments ) pth = pathlib.Path(...) with pth.open("wt") as fid: aas_xmlization.write(instance, fid)