https://github.com/lincolnloop/python-qrcode
import qrcode
data = "https://example.com"
qr = qrcode.make(data)
qr.save("example_qr.png")