2.6.4.1. pycsamt.emtf.xml.reader#

EMTF XML -> format-neutral pycsamt.emtf.EMTF reader.

Functions

read_emtf_xml(source, *[, strict])

Convenience wrapper around EMTFXMLReader.

Classes

EMTFXMLReader(*[, strict])

Read EMTF XML without routing the document through EDI.

class pycsamt.emtf.xml.reader.EMTFXMLReader(*, strict=True)[source]

Bases: PyCSAMTObject

Read EMTF XML without routing the document through EDI.

Parameters:

strict (bool, default=True) – In strict mode malformed scientific content raises EMTFXMLParseError. In permissive mode recoverable problems are warned about and the reader preserves as much content as possible.

read(source)[source]

Read one EMTF XML source into the scientific EMTF model.

Parameters:

source (str | bytes | PathLike[str] | IO[str] | IO[bytes])

Return type:

EMTF

pycsamt.emtf.xml.reader.read_emtf_xml(source, *, strict=True)[source]

Convenience wrapper around EMTFXMLReader.

Parameters:
Return type:

EMTF