QR platba SVG QR code and SPAYD string generator
Project description
QR platba SVG QR code and SPD string generator. https://github.com/ViktorStiskala/python-qrplatba
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file qrplatba-0.3.4.tar.gz
.
File metadata
- Download URL: qrplatba-0.3.4.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b03ad7c7dcf0abfc3d91673e37982ad3fe54594396583d49f93a7219ce49ec4 |
|
MD5 | 0491eaea76d86f5678bec11b896f95db |
|
BLAKE2b-256 | ac6e88f65e9c81f07eb5badc7672cb81c9fa7ebf6ea87fb4910e117f11a131d4 |