Last active
February 7, 2017 12:46
-
-
Save sinewalker/cff4478ec6f8c34c8b8ed169f762e2be to your computer and use it in GitHub Desktop.
make a QR code from any text (requires qrcode: pip install qrcode pillow)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # usage: echo "My QR Text"|makeQR.py > myqr.png | |
| # see http://alecthegeek.github.io/2013/04/28/creating-qr-codes-on-python.html | |
| import sys | |
| import qrcode | |
| qrcode.make("".join(sys.stdin.readlines())).save("/dev/stdout","png") |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
aborts with a write permission error for /dev/stdout