Swish QR Code Python Library
Project description
Swish QR Code
Generate Swish styled QR Code as SVG or PNG image.
Installation
pip install swish_qr
Usage
from swish_qr import generate_swish_code
# save to svg
svg_bytes = generate_swish_code("0123456789", 100.99, "Test message!", format="svg")
with open("example.svg", "wb") as f:
f.write(svg_bytes)
# save to png
png_bytes = generate_swish_code("0123456789", 100.99, "Test message!", format="png")
with open("example.png", "wb") as f:
f.write(png_bytes)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swish-qr-0.3.6.tar.gz
(148.0 kB
view hashes)
Built Distribution
swish_qr-0.3.6-py3-none-any.whl
(147.0 kB
view hashes)