swiss-qr-bill-reader
Zero-dependency Python parser, validator, and CLI for Swiss QR-bill (QR-Rechnung / SIX SPC 0200) payment payloads.
Want to extract Swiss QR-bills directly from PDFs, scans/photos (PNG/JPG) or ZIP folders into formatted Excel (.xlsx) / Xero / QuickBooks in your browser? 👉 Use the online tool at radarbg.com/instant/swiss-qr-bill-to-excel
Features
- Parses all 31+ official SIX Swiss Payment Code (
SPC 0200) fields (Creditor, Ultimate Debtor, Amount, CHF/EUR, Reference, Unstructured Message, Swico S1 Billing Info) - Validates IBAN Mod-97 checksum and CH/LI QR-IBAN range (IID
30000–31999) - Validates QRR 27-digit Mod-10 recursive checksum and SCOR ISO-11649 references
- Zero external dependencies
Install
pip install swiss-qr-bill-reader
Python Usage
from swiss_qr_bill_reader import parse_spc_payload
bill = parse_spc_payload(open("qr-bill.spc", encoding="utf-8").read())
print(bill["creditor"], bill["iban"], bill["amount"], bill["currency"], bill["validation"])
CLI Usage
swiss-qr-bill-reader qr-bill.spc --format json
swiss-qr-bill-reader qr-bill.spc --format csv -o bills.csv
Related Online Tools (RadarBG)
Metadata
Release files for swiss-qr-bill-reader 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swiss_qr_bill_reader-0.1.0.tar.gz | 4.9 kB | Without provenance | Details for swiss_qr_bill_reader-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swiss_qr_bill_reader-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for swiss_qr_bill_reader-0.1.0-py3-none-any.whl |
Total release size: 10.6 kB
Release files / swiss_qr_bill_reader-0.1.0.tar.gz
| Download URL | swiss_qr_bill_reader-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd75c154ae642d455796f987a9764769dedf34a0cb1713de92f78adf2955f333
|
|
BLAKE2b-256 checksum How to use checksums |
02b9a2c66a9ebfe215feb5a0538419f6a97b3d5bb932efe44526c032353297a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / swiss_qr_bill_reader-0.1.0-py3-none-any.whl
| Download URL | swiss_qr_bill_reader-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5804dc3fd504d4bedcd6025f1c748116ab4f49ebe5df7fc5eaf641fd9647dcbf
|
|
BLAKE2b-256 checksum How to use checksums |
5e937bf1046d2a355d1dad195607a9bda81b54f336ae1c67e20d4bca4101c9ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for swiss-qr-bill-reader 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.