plestylib.device.device_utils#

Classes#

ResponseParser

Parser to be used in the base device class. Once registered along with a config parameter,

Functions#

Module Contents#

class plestylib.device.device_utils.ResponseParser#

Parser to be used in the base device class. Once registered along with a config parameter, the parser will be called to parse the raw response from _query_() function of the device. The parsed result will be used to update the corresponding configuration parameter in the query() function.

__call__(response, param, **kwargs) Any#

Parse the raw response from the device and return a structured result.

Return type:

Any

abstractmethod parse(response, param, **kwargs) Any#

Alias for __call__, allowing explicit parsing calls.

Return type:

Any

plestylib.device.device_utils.operatable(func)#
plestylib.device.device_utils.error_check(func)#
plestylib.device.device_utils.get_local_ip()#