mnooner256 / pyqrcode

Python 3 module to generate QR Codes
BSD 3-Clause "New" or "Revised" License
408 stars 74 forks source link

Can somebody explain message data codewords? #75

Open prnvjb opened 3 years ago

prnvjb commented 3 years ago

Hi all, Can somebody tell me how to get message data codewords for a given string from this library? Many Thanks!!

heuer commented 3 years ago

You asked the question in various projects, including Segno, c.f. #79.

This may help you further, even if this project is not actively maintained:

import pyqrcode
qr = pyqrcode.create('test')
qr.builder.buffer.getvalue()
'0100000001000111010001100101011100110111010000001110110000010001111011001101011001101100111110011000000111111010101000111011001110100100011000010000001101100001110110000010100000110010110000110101100010100110'