-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DISCUSS] Feature PR: Output as base64 #64
Comments
You can use: import pyqrcode
qrcode = pyqrcode.create('Test')
encoded = qrcode.png_as_base64_str() Note: The returned string is actually not a valid data URI. PyQRCode 1.3.0 provides See https://github.com/heuer/pyqrcode/blob/master/CHANGES.rst |
Thanks @heuer for the information! I must have missed this, because I didn't see it in the docs. Is there a timeline for release to PyPI? |
No, unfortunately I don't have access to the PyPI project, see issue #52 |
@heuer reading through the issue, just wanted to say a big thanks for being willing to take over the project. I put in a comment on pypi/warehouse#4121 to support your case for taking over pyqrcode, I hope it pushes things along. |
I wanted to discuss this feature PR before actually taking any action.
One application I wanted was to be able to take the generated QR code and display it on an HTML page, without writing anything to disk.
As it turns out, this is possible:
I was wondering if you might be interested in accepting a PR that defines the following API?
The underlying implementation would essentially use the aforementioned code:
Please let me know, I'm happy to work on the PR for this. Alternatively, if you're not interested in this, no hard feelings too 😄.
The text was updated successfully, but these errors were encountered: