zoonado.protocol.response

class zoonado.protocol.response.Response(**kwargs)[source]

Base class for all operation response classes.

A simple class, has only an opcode attribute expected to be defined by subclasses, and a deserialize() classmethod.

classmethod deserialize(raw_bytes)[source]

Deserializes the given raw bytes into an instance.

Since this is a subclass of Part but a top-level one (i.e. no other subclass of Part would have a Response as a part) this merely has to parse the raw bytes and discard the resulting offset.