Metadata-Version: 2.1
Name: qrcode-styled
Version: 0.1.0
Summary: Python port for kozakdenys/qr-code-styling
Home-page: https://cifrazia.com
License: MIT
Keywords: cifrazia,library,utils,tools,qrcode
Author: Bogdan Parfenov
Author-email: adam.brian.bright@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Framework :: AsyncIO
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Natural Language :: Russian
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Provides-Extra: svg
Requires-Dist: Pillow (>=8.2.0,<9.0.0)
Requires-Dist: lxml (>=4.6.3,<5.0.0); extra == "svg"
Requires-Dist: qrcode (>=6.1,<7.0)
Project-URL: Bug Tracker, https://github.com/AdamBrianBright/qrcode_styled/issues
Project-URL: Contact Author, https://vk.com/adam_bright
Project-URL: Repository, https://github.com/AdamBrianBright/qrcode_styled.git
Description-Content-Type: text/markdown

# [WIP] QRCode Styled Generator

### This is a python port for a [browser QRCode generator](https://github.com/kozakdenys/qr-code-styling) by [Denys Kozak](https://github.com/kozakdenys)

```python
from qrcode_styled import QRCodeStyled

qr = QRCodeStyled()

# Save to file
with open('test.webp', 'wb') as _fh:
    qr.get_image('payload').save(_fh, 'WEBP', lossless=False, quaility=80, method=2)

# Get to BytesIO buffer
qrcode = qr.get('payload', _format='WEBP', lossless=False, quality=80, method=2)


# Also supports basic asyncio workaround
async def main():
    with open('test.webp', 'wb') as fh:
        img = await qr.get_image_async('payload')
        img.save(fh, 'WEBP', lossless=False, quaility=80, method=2)

    qrcode = await qr.get_async('payload', _format='WEBP', lossless=False, quality=80, method=2)


# You may put Image in the center of a QR Code

from PIL import Image

im = Image.open('image.png')
qrcode = qr.get('payload', im, _format='WEBP')
```

![Example 1](./test.webp)
