geolib.models.dgeoflow.serializer¶
Classes
|
Serializer to folder/file structure. |
|
|
|
DStabilSerializer for zipped.stix files. |
- class geolib.models.dgeoflow.serializer.DGeoFlowBaseSerializer(**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=DGeoFlowStructure, 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.dgeoflow.serializer.DGeoFlowInputSerializer(**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=DGeoFlowStructure, 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.dgeoflow.serializer.DGeoFlowInputZipSerializer(**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=DGeoFlowStructure, 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
]