Skip to main content

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


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)

Uploaded Source

Built Distribution

QR_payment_slip-0.1.0-py3-none-any.whl (19.1 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