Skip to content

hml_structure

Classes:

  • HMLStructure

    Parent dataclass forr modeling the entire Heurist database structure.

HMLStructure

Bases: BaseXmlModel

Parent dataclass forr modeling the entire Heurist database structure.

Attributes:

  • detail_types (DetailTypes) –

    model for data nested in the DetailTypes tag.

  • record_structures (RecStructure) –

    model for data nested in the RecStructure tag.

  • record_types (RecTypes) –

    model for data nested in the RecTypes tag.

Examples:

>>> from heurist.mock_data import DB_STRUCTURE_XML
>>>
>>>
>>> # Parse structure
>>> xml = DB_STRUCTURE_XML
>>> hml = HMLStructure.from_xml(xml)