This module contains the classes to parse a TeamSpeak 3 Server Query response and to structure the data.
Raised, if the data could not be parsed.
The TS3Response object, that has thrown the exception.
The original exception, if the parsing failed due to an exception like UnicodeDecodeError.
Parses ONE response and stores it’s data. If you init an instance with the data of more than one response, parsing will fail.
Note, that this class is lazy. This means, that the response is only parsed, if you request an attribute, that requires a parsed version of the data.
For convenience, this class supports container emualtion, so these calls are equal:
>>> ts3resp.parsed["client_nickname"] == ts3resp["client_nickname"] True
Parameters: data (bytes) – The byte string received from the server.
Getter: The list of lines from the original received response. Type: list of bytes
Getter: The raw response as bytestring. Type: bytes
The same as
TS3Response, but the error attribute is public.