Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Python script to generate QR Code using Google Chart Tools

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 kyu_ar_kowd_jenereytor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.rst
Octocat-spinner-32 sample.py
Octocat-spinner-32 setup.py
README.rst

HOW TO INSTALL

To install run pip install kyu_ar_kowd_jenereytor or easy_install kyu_ar_kowd_jenereytor.

SAMPLE CODE

from kyu_ar_kowd_jenereytor import Jenereytor, JenereytorInvalidHeightException, JenereytorInvalidTextException, JenereytorInvalidWidthException

if __name__ == "__main__":

    qrCodeGenerator = Jenereytor()

    try:
        pngFile = '/home/six519/Desktop/qrcode.png'
        if qrCodeGenerator.generate('Hello World', pngFile):
            print "Image saved to %s" % pngFile
        else:
            print "Cannot generate QR Code"
    except (JenereytorInvalidHeightException, JenereytorInvalidTextException, JenereytorInvalidWidthException) as e :
        print "An error occurred: %s" % e
Something went wrong with that request. Please try again.