mex.extractors.sumo.models package¶
Submodules¶
mex.extractors.sumo.models.base module¶
- class mex.extractors.sumo.models.base.SumoBaseModel¶
Bases:
BaseModel
Model class for data model NoKeda.
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'coerce_numbers_to_str': True, 'extra': 'ignore', 'populate_by_name': True, 'str_max_length': 100000, 'str_min_length': 1, 'str_strip_whitespace': True, 'use_enum_values': True, '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] objects.
This replaces Model.__fields__ from Pydantic V1.
mex.extractors.sumo.models.cc1_data_model_nokeda module¶
- class mex.extractors.sumo.models.cc1_data_model_nokeda.Cc1DataModelNoKeda(*, domain: str, domain_en: str, type_json: str, element_description: str, element_description_en: str, variable_name: str, element_label: str, element_label_en: str)¶
Bases:
SumoBaseModel
Model class for data model NoKeda.
- domain: str¶
- domain_en: str¶
- element_description: str¶
- element_description_en: str¶
- element_label: str¶
- element_label_en: str¶
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'coerce_numbers_to_str': True, 'extra': 'ignore', 'populate_by_name': True, 'str_max_length': 100000, 'str_min_length': 1, 'str_strip_whitespace': True, 'use_enum_values': True, '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]] = {'domain': FieldInfo(annotation=str, required=True), 'domain_en': FieldInfo(annotation=str, required=True), 'element_description': FieldInfo(annotation=str, required=True), 'element_description_en': FieldInfo(annotation=str, required=True), 'element_label': FieldInfo(annotation=str, required=True), 'element_label_en': FieldInfo(annotation=str, required=True), 'type_json': FieldInfo(annotation=str, required=True), 'variable_name': FieldInfo(annotation=str, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- type_json: str¶
- variable_name: str¶
mex.extractors.sumo.models.cc1_data_valuesets module¶
- class mex.extractors.sumo.models.cc1_data_valuesets.Cc1DataValuesets(*, category_label_de: str, sheet_name: str)¶
Bases:
SumoBaseModel
Model class for data valuesets.
- category_label_de: str¶
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'coerce_numbers_to_str': True, 'extra': 'ignore', 'populate_by_name': True, 'str_max_length': 100000, 'str_min_length': 1, 'str_strip_whitespace': True, 'use_enum_values': True, '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]] = {'category_label_de': FieldInfo(annotation=str, required=True), 'sheet_name': FieldInfo(annotation=str, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- sheet_name: str¶
mex.extractors.sumo.models.cc2_aux_mapping module¶
- class mex.extractors.sumo.models.cc2_aux_mapping.Cc2AuxMapping(*, sheet_name: str, variable_name_column: list[str])¶
Bases:
SumoBaseModel
Model class for aux_mapping.
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'coerce_numbers_to_str': True, 'extra': 'ignore', 'populate_by_name': True, 'str_max_length': 100000, 'str_min_length': 1, 'str_strip_whitespace': True, 'use_enum_values': True, '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]] = {'sheet_name': FieldInfo(annotation=str, required=True), 'variable_name_column': FieldInfo(annotation=list[str], required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- sheet_name: str¶
- variable_name_column: list[str]¶
mex.extractors.sumo.models.cc2_aux_model module¶
- class mex.extractors.sumo.models.cc2_aux_model.Cc2AuxModel(*, domain: str, element_description: str, in_database_static: bool, variable_name: str, depends_on_nokeda_variable: str)¶
Bases:
SumoBaseModel
Model class for aux model.
- depends_on_nokeda_variable: str¶
- domain: str¶
- element_description: str¶
- in_database_static: bool¶
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'coerce_numbers_to_str': True, 'extra': 'ignore', 'populate_by_name': True, 'str_max_length': 100000, 'str_min_length': 1, 'str_strip_whitespace': True, 'use_enum_values': True, '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]] = {'depends_on_nokeda_variable': FieldInfo(annotation=str, required=True), 'domain': FieldInfo(annotation=str, required=True), 'element_description': FieldInfo(annotation=str, required=True), 'in_database_static': FieldInfo(annotation=bool, required=True), 'variable_name': FieldInfo(annotation=str, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- variable_name: str¶
mex.extractors.sumo.models.cc2_aux_valuesets module¶
- class mex.extractors.sumo.models.cc2_aux_valuesets.Cc2AuxValuesets(*, label_de: str, label_en: str)¶
Bases:
SumoBaseModel
Model class for aux valuesets.
- label_de: str¶
- label_en: str¶
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'coerce_numbers_to_str': True, 'extra': 'ignore', 'populate_by_name': True, 'str_max_length': 100000, 'str_min_length': 1, 'str_strip_whitespace': True, 'use_enum_values': True, '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]] = {'label_de': FieldInfo(annotation=str, required=True), 'label_en': FieldInfo(annotation=str, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
mex.extractors.sumo.models.cc2_feat_projection module¶
- class mex.extractors.sumo.models.cc2_feat_projection.Cc2FeatProjection(*, feature_abbr: str, feature_description: str, feature_domain: str, feature_name_en: str, feature_name_de: str, feature_subdomain: str)¶
Bases:
SumoBaseModel
Model class for feat projection.
- feature_abbr: str¶
- feature_description: str¶
- feature_domain: str¶
- feature_name_de: str¶
- feature_name_en: str¶
- feature_subdomain: str¶
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'coerce_numbers_to_str': True, 'extra': 'ignore', 'populate_by_name': True, 'str_max_length': 100000, 'str_min_length': 1, 'str_strip_whitespace': True, 'use_enum_values': True, '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]] = {'feature_abbr': FieldInfo(annotation=str, required=True), 'feature_description': FieldInfo(annotation=str, required=True), 'feature_domain': FieldInfo(annotation=str, required=True), 'feature_name_de': FieldInfo(annotation=str, required=True), 'feature_name_en': FieldInfo(annotation=str, required=True), 'feature_subdomain': FieldInfo(annotation=str, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.