rlightning.utils.common¶ class rlightning.utils.common.MultiprocessingSerializer[source]¶ Bases: object static deserialize(data)[source]¶ Deserialize a previously serialized object. Parameters: data (bytes or str) – The serialized data, optionally base64-encoded. Returns: The deserialized Python object. static serialize(obj, output_str: bool = False)[source]¶ Serialize a Python object using ForkingPickler. Parameters: obj – The object to serialize. output_str (bool) – If True, return a base64-encoded string instead of raw bytes. Returns: The serialized object. Return type: bytes or str