Metadata-Version: 2.1
Name: QR-payment-slip
Version: 0.1.0
Summary: QR payment slip generator for Switzerland and Lichtenstein
Home-page: UNKNOWN
Author: Rafael S. Müller
Author-email: rafa.molitoris@gmail.com
License: UNKNOWN
Project-URL: Source Code, https://github.com/molitoris/qr_payment_slip
Keywords: QR payment slip bill swiss payment standard
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.7
Requires-Dist: svgwrite (~=1.4)
Requires-Dist: qrcode (~=6.1)
Requires-Dist: python-stdnum (~=1.13)
Requires-Dist: iso3166 (~=1.0.1)
Requires-Dist: setuptools (~=49.2.0)

=========================
QR payment slip generator
=========================

Purpose
=======
This library generates QR payment slips for Switzerland and Liechtenstein, which follow the `Swiss Payment Standards 2019 (Version 2.1) <https://www.paymentstandards.ch/>`_.

The library currently outputs the payment slips as SVG graphics.

Samples
-------

* `Minimal`_
* `Minimal with amount`_
* `Minimal with amount and debtor`_
* `Minimal with amount, debtor and reference number`_
* `Minimal with amount, debtor, reference number and unstructured message`_

.. _Minimal: ./sample/01_bill_minimal.svg
.. _Minimal with amount: ./sample/02_bill_amount.svg
.. _Minimal with amount and debtor: ./sample/03_bill_amount_debtor.svg
.. _Minimal with amount, debtor and reference number: ./sample/04_bill_amount_debtor_ref.svg
.. _Minimal with amount, debtor, reference number and unstructured message: ./sample/05_bill_amount_debtor_ref_msg.svg

Installation
============

    $ pip install qr-paymentslip

Usage example
=============
The library can be used as an instance or via the command line:

Python
------

.. code-block:: 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



