Using python to generate QR-code

Pure python QR Code generator

Generate QR codes.

For a standard install (which will include pillow for generating images), run:

pip install qrcode[pil]

What is a QR Code?
A Quick Response code is a two-dimensional pictographic code used for its fast readability and comparatively large storage capacity. The code consists of black modules arranged in a square pattern on a white background. The information encoded can be made up of any kind of data (e.g., binary, alphanumeric, or Kanji symbols)

import random
import qrcode

hash = random.getrandbits(256)
print(hex(hash))
hash = '0xa8b2e9fed71ddf15da9fd30d461b9f6c9ffbceb86cbef71f4ca515db14fd7cb6'
img = qrcode.make(hash)
img.save('test.png')
H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now