swish-qr


Nameswish-qr JSON
Version 0.3.6 PyPI version JSON
download
home_page
SummarySwish QR Code Python Library
upload_time2023-09-13 09:39:12
maintainer
docs_urlNone
author
requires_python>=3.7
licenseLICENSE
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Swish QR Code

<p>
<a href="https://github.com/fr3h4g/swish-qr-python/actions?query=event%3Apush+branch%3Amain" target="_blank">
    <img src="https://github.com/fr3h4g/swish-qr-python/actions/workflows/tests.yml/badge.svg" alt="Test"/>
</a>
<a href="https://codecov.io/gh/fr3h4g/swish-qr-python" > 
 <img src="https://codecov.io/gh/fr3h4g/swish-qr-python/branch/main/graph/badge.svg?token=8XP0FYQ0P0&" alt="Codecov"/> 
 </a>
 <a href="https://pypi.org/project/swish_qr" target="_blank">
    <img src="https://img.shields.io/pypi/v/swish_qr?color=%2334D058&label=pypi%20package" alt="Package version"/>
</a>
<a href="https://pypi.org/project/swish_qr" target="_blank">
    <img src="https://img.shields.io/pypi/pyversions/swish_qr.svg?color=%2334D058" alt="Supported Python versions"/>
</a>
</p>

Generate [Swish](https://www.swish.nu) styled QR Code as SVG or PNG image.

![Example](https://raw.githubusercontent.com/fr3h4g/swish-qr-python/main/example.png "Example")

## Installation

```
pip install swish_qr
```

## Usage

```python
from swish_qr import generate_swish_code

# save to svg
svg_bytes = generate_swish_code("0123456789", 100.99, "Test message!", format="svg")
with open("example.svg", "wb") as f:
    f.write(svg_bytes)

# save to png
png_bytes = generate_swish_code("0123456789", 100.99, "Test message!", format="png")
with open("example.png", "wb") as f:
    f.write(png_bytes)

```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "swish-qr",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "Fredrik Haglund <fr3h4g@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/85/30/3aa817eaba6cf0b612e23ed6197210541cb6342102cd62fb5ed487c1745f/swish-qr-0.3.6.tar.gz",
    "platform": null,
    "description": "# Swish QR Code\n\n<p>\n<a href=\"https://github.com/fr3h4g/swish-qr-python/actions?query=event%3Apush+branch%3Amain\" target=\"_blank\">\n    <img src=\"https://github.com/fr3h4g/swish-qr-python/actions/workflows/tests.yml/badge.svg\" alt=\"Test\"/>\n</a>\n<a href=\"https://codecov.io/gh/fr3h4g/swish-qr-python\" > \n <img src=\"https://codecov.io/gh/fr3h4g/swish-qr-python/branch/main/graph/badge.svg?token=8XP0FYQ0P0&\" alt=\"Codecov\"/> \n </a>\n <a href=\"https://pypi.org/project/swish_qr\" target=\"_blank\">\n    <img src=\"https://img.shields.io/pypi/v/swish_qr?color=%2334D058&label=pypi%20package\" alt=\"Package version\"/>\n</a>\n<a href=\"https://pypi.org/project/swish_qr\" target=\"_blank\">\n    <img src=\"https://img.shields.io/pypi/pyversions/swish_qr.svg?color=%2334D058\" alt=\"Supported Python versions\"/>\n</a>\n</p>\n\nGenerate [Swish](https://www.swish.nu) styled QR Code as SVG or PNG image.\n\n![Example](https://raw.githubusercontent.com/fr3h4g/swish-qr-python/main/example.png \"Example\")\n\n## Installation\n\n```\npip install swish_qr\n```\n\n## Usage\n\n```python\nfrom swish_qr import generate_swish_code\n\n# save to svg\nsvg_bytes = generate_swish_code(\"0123456789\", 100.99, \"Test message!\", format=\"svg\")\nwith open(\"example.svg\", \"wb\") as f:\n    f.write(svg_bytes)\n\n# save to png\npng_bytes = generate_swish_code(\"0123456789\", 100.99, \"Test message!\", format=\"png\")\nwith open(\"example.png\", \"wb\") as f:\n    f.write(png_bytes)\n\n```\n",
    "bugtrack_url": null,
    "license": "LICENSE",
    "summary": "Swish QR Code Python Library",
    "version": "0.3.6",
    "project_urls": {
        "Homepage": "https://github.com/fr3h4g/swish-qr-python"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ba3b175a6799f4fb20dae36037732bfbcf9a45ba93876f842fb90a4c7f56821",
                "md5": "4666449383cea8545415837ae883ff29",
                "sha256": "17b23fda242b4da4dc9ba844379334353631606a283b8341b1436a0d02d55934"
            },
            "downloads": -1,
            "filename": "swish_qr-0.3.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4666449383cea8545415837ae883ff29",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 147008,
            "upload_time": "2023-09-13T09:39:10",
            "upload_time_iso_8601": "2023-09-13T09:39:10.269200Z",
            "url": "https://files.pythonhosted.org/packages/0b/a3/b175a6799f4fb20dae36037732bfbcf9a45ba93876f842fb90a4c7f56821/swish_qr-0.3.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "85303aa817eaba6cf0b612e23ed6197210541cb6342102cd62fb5ed487c1745f",
                "md5": "bc98092080d7caf93bff71272b7918e8",
                "sha256": "a3f4e2a7c8ddccf9adace927cd11bdc9a5ad5833ede247b2217cc0b90b808baf"
            },
            "downloads": -1,
            "filename": "swish-qr-0.3.6.tar.gz",
            "has_sig": false,
            "md5_digest": "bc98092080d7caf93bff71272b7918e8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 148023,
            "upload_time": "2023-09-13T09:39:12",
            "upload_time_iso_8601": "2023-09-13T09:39:12.167218Z",
            "url": "https://files.pythonhosted.org/packages/85/30/3aa817eaba6cf0b612e23ed6197210541cb6342102cd62fb5ed487c1745f/swish-qr-0.3.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-13 09:39:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fr3h4g",
    "github_project": "swish-qr-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "swish-qr"
}
        
Elapsed time: 0.19670s