qrcode#

class platypush.message.response.qrcode.QrcodeDecodedResponse(results: List[pyzbar.pyzbar.Decoded], image_file: str | None = None, *args, **kwargs)[source]#

Bases: QrcodeResponse

__init__(results: List[pyzbar.pyzbar.Decoded], image_file: str | None = None, *args, **kwargs)[source]#
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.qrcode.QrcodeGeneratedResponse(content: str, format: str, data: str | None = None, image_file: str | None = None, *args, **kwargs)[source]#

Bases: QrcodeResponse

__init__(content: str, format: str, data: str | None = None, image_file: str | None = None, *args, **kwargs)[source]#
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.qrcode.QrcodeResponse(target=None, origin=None, id=None, output=None, errors=None, timestamp=None, logging_level=20)[source]#

Bases: Response

class platypush.message.response.qrcode.RectModel(rect: pyzbar.locations.Rect)[source]#

Bases: Mapping

__init__(rect: pyzbar.locations.Rect)[source]#
class platypush.message.response.qrcode.ResultModel(result: pyzbar.pyzbar.Decoded, *args, **kwargs)[source]#

Bases: Mapping

__init__(result: pyzbar.pyzbar.Decoded, *args, **kwargs)[source]#