# pyarrow.SerializationContext¶

class pyarrow.SerializationContext

Bases: object

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

 register_type(self, type_, type_id[, …]) EXPERIMENTAL: Add type to the list of types we can serialize.
register_type(self, type_, type_id, pickle=False, custom_serializer=None, custom_deserializer=None)

EXPERIMENTAL: Add type to the list of types we can serialize.

Parameters: type (TypeType) – The type that we can serialize. type_id (bytes) – A string of bytes used to identify the type. pickle (bool) – True if the serialization should be done with pickle. False if it should be done efficiently with Arrow. custom_serializer (callable) – This argument is optional, but can be provided to serialize objects of the class in a particular way. custom_deserializer (callable) – This argument is optional, but can be provided to deserialize objects of the class in a particular way.