Generate a QR Code with Python
Create a virtualenv and activate it
$ mkdir my_project && cd $_
$ python3 -m venv .
$ source bin/activate
Install the Pillow and QRCode packages
$ pip install pillow qrcode
Then, in a Python script:
import qrcode
img = qrcode.make('http://foo.bar')
img.save('/abs/path/to/file.png')
Or, even better, straight out of the docs, from the command line, run:
$ qr "Some text" > test.png
Feedback?
Email us at enquiries@kinsa.cc.