ds_resource_plugin_py_lib.common.serde.serialize

File: __init__.py Region: ds_resource_plugin_py_lib/common/serde/serialize

Description

Serializer implementations for dataset content.

Submodules

Classes

AwsWranglerSerializer

Extensible class to serialize dataset content.

DataSerializer

Extensible class to serialize dataset content.

PandasSerializer

Extensible class to serialize dataset content.

Package Contents

class ds_resource_plugin_py_lib.common.serde.serialize.AwsWranglerSerializer[source]

Bases: ds_resource_plugin_py_lib.common.serde.serialize.base.DataSerializer

Extensible class to serialize dataset content.

Convert obj to bytes.

Not supposed to be used directly, but to be subclassed.

format: ds_resource_plugin_py_lib.common.resource.dataset.storage_format.DatasetStorageFormatType
kwargs: dict[str, Any]
__call__(obj: pandas.DataFrame, **kwargs: Any) Any[source]

Serialize a pandas DataFrame into a value. :param obj: The pandas DataFrame to serialize. :param **kwargs: Additional keyword arguments.

Returns:

A value.

class ds_resource_plugin_py_lib.common.serde.serialize.DataSerializer[source]

Bases: ds_common_serde_py_lib.Serializable

Extensible class to serialize dataset content.

Convert obj to bytes.

Not supposed to be used directly, but to be subclassed.

abstractmethod __call__(obj: Any, **kwargs: Any) Any[source]
class ds_resource_plugin_py_lib.common.serde.serialize.PandasSerializer[source]

Bases: ds_resource_plugin_py_lib.common.serde.serialize.base.DataSerializer

Extensible class to serialize dataset content.

Convert obj to bytes.

Not supposed to be used directly, but to be subclassed.

format: ds_resource_plugin_py_lib.common.resource.dataset.storage_format.DatasetStorageFormatType
kwargs: dict[str, Any]
__call__(obj: Any, **_kwargs: Any) Any[source]

Serialize a pandas DataFrame into a value. :param obj: The pandas DataFrame to serialize. :param **kwargs: Additional keyword arguments.

Returns:

A value.