communication.serializer_plugins.tuple module

(De)serialization logic for tuple.

communication.serializer_plugins.tuple.register()[source]

Register tuple serializer and deserializer.

Return type:

None

communication.serializer_plugins.tuple.tuple_deserialize(obj, opts)[source]

Function for deserializing tuples

Parameters:
  • obj (list[Any]) – object to deserialize

  • opts (DeserializerOpts) – options to change the behaviour of the serialization.

Return type:

tuple[Any, ...]

Returns:

deserialized tuple object

communication.serializer_plugins.tuple.tuple_serialize(obj, opts)[source]

Function for serializing tuples

Parameters:
  • obj (tuple[Any, ...]) – tuple object to serialize

  • opts (SerializerOpts) – options to change the behaviour of the serialization.

Return type:

list[Any]

Returns:

serialized object