general_superstaq.serialization
Functions
|
Convert arbitrary bytes data into a string. |
|
Deserialize serialized objects. |
|
Serialize picklable object into a string. |
|
Decode the string-encoded bytes data returned by bytes_to_str. |
Module Contents
- general_superstaq.serialization.bytes_to_str(bytes_data: bytes) str
Convert arbitrary bytes data into a string.
- Parameters:
bytes_data – The data to be converted.
- Returns:
The string from conversion.
- general_superstaq.serialization.deserialize(serialized_obj: str) Any
Deserialize serialized objects.
- Parameters:
serialized_obj – A string generated via general_superstaq.serialization.serialize.
- Returns:
The serialized object.
- general_superstaq.serialization.serialize(obj: Any) str
Serialize picklable object into a string.
- Parameters:
obj – A picklable object to be serialized.
- Returns:
The string representing the serialized object.
- general_superstaq.serialization.str_to_bytes(str_data: str) bytes
Decode the string-encoded bytes data returned by bytes_to_str.
- Parameters:
str_data – The string data to be decoded.
- Returns:
The decoded by bytes data.