Skip to main content

Swish QR Code Python Library

Project description

Swish QR Code

Test Codecov Package version Supported Python versions

Generate Swish styled QR Code as SVG or PNG image.

Example

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)

Uploaded Source

Built Distribution

swish_qr-0.3.6-py3-none-any.whl (147.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page