Python Google Chart 0.2.1 released
Releases, pygooglechart, pythonI just released pygooglechart 0.2.1. It has several bug fixes and minor additions, but the major change is that it now supports QR codes. You can quite easily create a QR code with pygooglechart as you can see below.
from pygooglechart import QRChart
# Create a 125x125 QR code chart
chart = QRChart(125, 125)
# Add the text
chart.add_data('Hello, World!')
# "Level H" error correction with a 0 pixel margin
chart.set_ec('H', 0)
# Download
chart.download('qr-hello.png')
This will download a png from the URL:
http://chart.apis.google.com/chart?cht=qr&chs=125×125&chl=Hello%2C%20World%21&chld=H|0
The image downloaded looks like this:
QR codes are new to me. I’ve only seen a QR code on a bus stop advertisement once in Sydney but I’m sure more will pop up.








August 26th, 2008 at 2:16 pm
If only you knew the lies and stupidity surrounding this. Ugh.