bridgedb.qrcodes

Utilities for working with QRCodes.

generateQR(bridgelines, imageFormat=u'JPEG', bridgeSchema=False)[source]

Generate a QRCode for the client’s bridge lines.

Parameters:
  • bridgelines (str) – The Bridge Lines which we are distributing to the client.
  • bridgeSchema (bool) – If True, prepend 'bridge://' to the beginning of each bridge line before QR encoding.
Return type:

str or None

Returns:

The generated QRCode, as a string.