(data)
return output.getvalue()
Return a QR Code PNG (binary data)
Return a QR Code PNG (binary data)
Return a QR Code PNG ( binary data )
def get_qrcode(data):
    """
    Return a QR Code PNG (binary data)
    """
    image = qrcode.make(data)
    output = BytesIO()
    image.save(output, "PNG")
    return output.getvalue()
def get_qrcode ( data ) : image = qrcode . make ( data ) output = BytesIO ( ) image . save ( output , "PNG" ) return output . getvalue ( )