geolib.models.dstability.serializer¶
Classes
|
Serializer to folder/file structure. |
|
|
|
DStabilSerializer for zipped.stix files. |
- class geolib.models.dstability.serializer.DStabilityBaseSerializer(**data)¶
Serializer to folder/file structure.
- Parameters:
data (
Any
)
- 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]] = {'ds': FieldInfo(annotation=DStabilityStructure, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- serialize()¶
- Return type:
Dict
- abstract write(path)¶
Write serialized model to Filepath or BytesIO buffer
- class geolib.models.dstability.serializer.DStabilityInputSerializer(**data)¶
- Parameters:
data (
Any
)
- 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]] = {'ds': FieldInfo(annotation=DStabilityStructure, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- write(filepath)¶
Write serialized model to Filepath or BytesIO buffer
- Parameters:
filepath (
Path
)- Return type:
Path
- class geolib.models.dstability.serializer.DStabilityInputZipSerializer(**data)¶
DStabilSerializer for zipped.stix files.
- Parameters:
data (
Any
)
- 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]] = {'ds': FieldInfo(annotation=DStabilityStructure, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- write(filepath)¶
Write serialized model to Filepath or BytesIO buffer
- Parameters:
filepath (
Union
[Path
,BytesIO
])- Return type:
Union
[Path
,BytesIO
]