geolib.models.dstability.serializer

Classes

DStabilityBaseSerializer(**data)

Serializer to folder/file structure.

DStabilityInputSerializer(**data)

DStabilityInputZipSerializer(**data)

DStabilSerializer for zipped.stix files.

class geolib.models.dstability.serializer.DStabilityBaseSerializer(**data)

Serializer to folder/file structure.

Parameters:

data (Any)

ds: DStabilityStructure
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.dstability.serializer.DStabilityInputSerializer(**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.dstability.serializer.DStabilityInputZipSerializer(**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]