leaf_engine_flows.serializer ============================ .. py:module:: leaf_engine_flows.serializer Classes ------- .. autoapisummary:: leaf_engine_flows.serializer.LeafCheckpointSerializer Module Contents --------------- .. py:class:: LeafCheckpointSerializer(*args, **kwargs) Bases: :py:obj:`prefect.engine.serializers.PandasSerializer` A thin wrapper around the prefect PandasSerializer. Useful for writing and reading checkpoints. Treats pandas dataframes as the default PandasSerializer does, but will take single values and write them as a single column, single row csv. Will deserialize them back to a single value. .. py:method:: deserialize(value: bytes) -> Any Handles deserializing single value dataframes into their original python types. .. py:method:: serialize(value: Any) -> bytes