swissqr


Nameswissqr JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://gitlab.com/dinuthehuman/swissqr
SummaryGenerator for SwissQR invoice qr codes
upload_time2023-08-23 13:16:37
maintainer
docs_urlNone
authorMartin Obrist
requires_python>=3.9, <4
licenseMIT
keywords switzerland payment qrcode
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # swissqr

Python lib to generate the QR code of Swiss QR bills. Check [here](https://www.six-group.com/en/products-services/banking-services/billing-and-payments/qr-bill.html) for more details on QR bills.

**Beware:** This library is not well tested, use at your own risk!

## Quickstart:

```python
import pathlib
from iso4217 import Currency
from swissqr import PaymentParty, QRData, SwissQR

# Create a PaymentParty object for the payment receiver
p = PaymentParty(
    name="Hambone Fakenamington",
    street="Madeup Street",
    street_no="1",
    zipcode="9999",
    city="Madeup Town",
    country="CH"
)

# Create QR code data model
d = QRData(
    iban="CH1234567890123456789",
    creditor=p,
    amount=5.0,
    currency=Currency.chf,
    message="Have a beer!"
)

# Create QR code object
q = SwissQR(d)

# Get QR code svg as a string
markup = q.get_markup()

# Save QR code to a file
p = pathlib.Path("/tmp/qr.svg")
q.save(p)
```

## Installation

Install with `pip`/`git`:

```bash
pip install git+https://gitlab.com/dinuthehuman/swissqr.git
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/dinuthehuman/swissqr",
    "name": "swissqr",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9, <4",
    "maintainer_email": "",
    "keywords": "Switzerland,payment,qrcode",
    "author": "Martin Obrist",
    "author_email": "dev@obrist.email",
    "download_url": "https://files.pythonhosted.org/packages/a0/63/486e5032109aa5eeb1983499f1945eb94cbba7c86f64dd0bd9f2b0167b14/swissqr-0.2.0.tar.gz",
    "platform": null,
    "description": "# swissqr\n\nPython lib to generate the QR code of Swiss QR bills. Check [here](https://www.six-group.com/en/products-services/banking-services/billing-and-payments/qr-bill.html) for more details on QR bills.\n\n**Beware:** This library is not well tested, use at your own risk!\n\n## Quickstart:\n\n```python\nimport pathlib\nfrom iso4217 import Currency\nfrom swissqr import PaymentParty, QRData, SwissQR\n\n# Create a PaymentParty object for the payment receiver\np = PaymentParty(\n    name=\"Hambone Fakenamington\",\n    street=\"Madeup Street\",\n    street_no=\"1\",\n    zipcode=\"9999\",\n    city=\"Madeup Town\",\n    country=\"CH\"\n)\n\n# Create QR code data model\nd = QRData(\n    iban=\"CH1234567890123456789\",\n    creditor=p,\n    amount=5.0,\n    currency=Currency.chf,\n    message=\"Have a beer!\"\n)\n\n# Create QR code object\nq = SwissQR(d)\n\n# Get QR code svg as a string\nmarkup = q.get_markup()\n\n# Save QR code to a file\np = pathlib.Path(\"/tmp/qr.svg\")\nq.save(p)\n```\n\n## Installation\n\nInstall with `pip`/`git`:\n\n```bash\npip install git+https://gitlab.com/dinuthehuman/swissqr.git\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Generator for SwissQR invoice qr codes",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://gitlab.com/dinuthehuman/swissqr",
        "Issue Tracker": "https://gitlab.com/dinuthehuman/swissqr/-/issues",
        "Source Code": "https://gitlab.com/dinuthehuman/swissqr"
    },
    "split_keywords": [
        "switzerland",
        "payment",
        "qrcode"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86ee4b3d3d886ba65e371cff949d44bcea51fbdb25eec69e5fa174437883bd3b",
                "md5": "51064cfadbfeb3b5b2cd9970f4d41df7",
                "sha256": "a95e595c12b2b95568324880d200fa3f3facfad7a4deae0d490cc33aca7d6312"
            },
            "downloads": -1,
            "filename": "swissqr-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "51064cfadbfeb3b5b2cd9970f4d41df7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9, <4",
            "size": 6388,
            "upload_time": "2023-08-23T13:16:36",
            "upload_time_iso_8601": "2023-08-23T13:16:36.320548Z",
            "url": "https://files.pythonhosted.org/packages/86/ee/4b3d3d886ba65e371cff949d44bcea51fbdb25eec69e5fa174437883bd3b/swissqr-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a063486e5032109aa5eeb1983499f1945eb94cbba7c86f64dd0bd9f2b0167b14",
                "md5": "338815ec8ad3ef7618fdad6044e05ddb",
                "sha256": "e94710a0e7b80128fc3b647897c6823bd6f03e287ad15858b6ad3f1453578747"
            },
            "downloads": -1,
            "filename": "swissqr-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "338815ec8ad3ef7618fdad6044e05ddb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9, <4",
            "size": 6381,
            "upload_time": "2023-08-23T13:16:37",
            "upload_time_iso_8601": "2023-08-23T13:16:37.768463Z",
            "url": "https://files.pythonhosted.org/packages/a0/63/486e5032109aa5eeb1983499f1945eb94cbba7c86f64dd0bd9f2b0167b14/swissqr-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-23 13:16:37",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "dinuthehuman",
    "gitlab_project": "swissqr",
    "lcname": "swissqr"
}
        
Elapsed time: 0.10480s