Custom codecs

class isc.codecs.AbstractCodec[source]

Abstract base class for implementing codecs.

“Codec” is a class that tells ISC how to encode & decode message payloads.

Server can support multiple codecs while client can use only one at a time.

Default codec is PickleCodec. You can implement your own codec by extending AbstractCodec and overriding its methods.

Important: Don’t forget that both client and server should have the codec installed!

decode(payload)[source]

Called when a message needs to be serialized for sending over AMQP channel.

encode(message)[source]

Called when a message needs to be serialized for sending over AMQP channel.

class isc.codecs.JSONCodec[source]

JSON codec implementation.

class isc.codecs.PickleCodec[source]

Pickle codec implementation.

class isc.codecs.TypedJSONCodec[source]

JSON codec implementation with support of timestamps & UUIDs.