kiel.protocol.response

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

Bases: kiel.protocol.part.Part

Base class for all api response classes.

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

api = None
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.