geolib.models.dsettlement.dsettlement_structures

Classes

ComplexVerticalSubstructure(*args)

Specific Vertical substructure with a dedicated parser because of the oddities stored in that group.

DSerieRepeatedTableStructure(*args)

class geolib.models.dsettlement.dsettlement_structures.ComplexVerticalSubstructure(*args)

Specific Vertical substructure with a dedicated parser because of the oddities stored in that group.

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

class geolib.models.dsettlement.dsettlement_structures.DSerieRepeatedTableStructure(*args)
static get_mapped_group(column_list, group_line)

Based on the input column and the group line, generates a list of dictionary entries which are mapped to the first element of the group line.

Parameters:
  • column_list (List[str]) – List of columns to map.

  • group_line (str) – Content containing id of dictionary and list values.

Returns:

Generated mapped group.

Return type:

Dict[str, List[Dict[str, str]]]

classmethod get_validated_mappings(generated_dict)

Transforms the generated dict from the parent into our own mapping.

Parameters:

generated_dict (Dict[str, str]) – Parsed dictionary from parent.

Returns:

Mapped dictionary with concrete properties.

Return type:

Dict[str, str]

classmethod group_value_is_list(group_key)

Override of parent method. Only the columns are not a list.

Parameters:

group_key (str) – Property name.

Returns:

Whether the key represents a list of values or not.

Return type:

bool

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'validate_assignment': True, 'validate_default': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.