Not TeX-related, but since you inquired about a Python script...
# Generates QR code from given text using Google charts API.
# change those to your heart's content. See http://code.google.com/apis/chart/docs/gallery/qr_codes.html for more info
# spaces in the text should be replaced with "+". probably other control symbols need to be handled in special way.
return 'http://chart.apis.google.com/chart?chs=%dx%d&cht=qr&choe=%s&chl=%s' %(IMAGE_WIDTH, IMAGE_HEIGHT, ENCODING, text.replace(" ", "+"))
def makeQR(text, dest):
Save this as
fetchqr.py, or some such. Usage is simple:
python fetchqr.py 'http://tex.stackexchange.com/questions/1429/latex-package-to-generate-qr-codes' '/tmp/myfig.png'
And you'd get something like:
This works on Python 2.6 under Windows, but I imagine it shouldn't be a a problem with older Python versions. Not sure about Python 3.x though.
If you're using something like a
Makefile to run your project, then you should be able to generate those on the fly as needed -- maybe create a file with stuff to QR-code, then run all the entries through the grinder in one go.
The code is free for the taking.