QR payment slip generator for Switzerland and Lichtenstein
Project description
Purpose
This library generates QR payment slips for Switzerland and Liechtenstein, which follow the Swiss Payment Standards 2019 (Version 2.1).
The library currently outputs the payment slips as SVG graphics.
Samples
Installation
$ pip install qr-paymentslip
Usage example
The library can be used as an instance or via the command line:
Python
from qrbill.bill import QRBill, Address
bill = QRBill()
bill.account = "CH9889144356966475815"
bill.creditor = Address(name="Hans Muster", address_line_1="Musterstrasse 1", pcode=1000, town="Musterhausen")
bill.save("my_bill.svg")
Running tests
You can run tests either by executing:
$ python tests/test_qrbill.py
or:
$ python setup.py test
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
QR payment slip-0.1.0.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for QR_payment_slip-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07b9c08468d4104b5c2bfcd430c2ebff07c6d2269a40fcb438eba24cce26b6c2 |
|
MD5 | 7b79c1fabb729181aade39db1cf2a11b |
|
BLAKE2b-256 | c1c2b83cec986c5f3094f2309162fc6e4854d8be1bc3305914263d4cbac7f01a |