Skip to main content

QR platba SVG QR code and SPAYD string generator

Project description

https://badge.fury.io/py/qrplatba.png

QR platba SVG QR code and SPD string generator.

https://raw.github.com/viktorstiskala/python-qrplatba/gh-pages/example.png

See http://qr-platba.cz/pro-vyvojare/ for more information about the specification (available only in czech).

from qrplatba import QRPlatbaGenerator
from datetime import datetime, timedelta


due = datetime.now() + timedelta(days=14)
generator = QRPlatbaGenerator('123456789/0123', 400.56, x_vs=2034456, message='text', due_date=due)
img = generator.make_image()
img.save('example.svg')

Installation

To install qrplatba, simply:

$ pip install qrplatba

Note on image file formats

This module generates SVG file which is an XML-based vector image format. You can use various libraries and/or utilities to convert it to other vector or bitmap image formats. Below is an example how to use libRSVG to convert SVG images.

libRSVG

libRSVG renders SVG files using cairo and supports many output image formats. It can also be used directly in console with rsvg-convert command.

$ rsvg-convert -f pdf example.svg -o example.pdf

License

This software is licensed under MPL 2.0.

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

qrplatba-0.5.0.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file qrplatba-0.5.0.tar.gz.

File metadata

  • Download URL: qrplatba-0.5.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/60.10.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.12

File hashes

Hashes for qrplatba-0.5.0.tar.gz
Algorithm Hash digest
SHA256 057db71c9660f987a14ce67b975bc4e150a74ee7462dd0e5a21eff64d8e28c8b
MD5 c48bd2dd383a1a1ec5443abdb4b1b0d4
BLAKE2b-256 bdffc730616bac61c2f31287087f5f5cf7ffa32ec07ccff9b16ede2e3f58e8f3

See more details on using hashes here.

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