geolib.models.dgeoflow.serializer

Classes

DGeoFlowBaseSerializer(**data)

Serializer to folder/file structure.

DGeoFlowInputSerializer(**data)

DGeoFlowInputZipSerializer(**data)

DStabilSerializer for zipped.stix files.

class geolib.models.dgeoflow.serializer.DGeoFlowBaseSerializer(**data)

Serializer to folder/file structure.

Parameters:

data (Any)

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

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

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_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'ser_json_inf_nan': 'constants', 'validate_assignment': True, 'validate_default': True}

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

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_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'ser_json_inf_nan': 'constants', 'validate_assignment': True, 'validate_default': True}

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

write(filepath)

Write serialized model to Filepath or BytesIO buffer

Parameters:

filepath (Union[Path, BytesIO])

Return type:

Union[Path, BytesIO]