faust.types.codecs

class faust.types.codecs.CodecT(children: Optional[Tuple[CodecT, ...]] = None, **kwargs: Any)[source]

Abstract type for an encoder/decoder.

abstract dumps(obj: Any) bytes[source]
Return type:

bytes

abstract loads(s: bytes) Any[source]
Return type:

Any

abstract clone(*children: CodecT) CodecT[source]
Return type:

CodecT