Initial commit

This commit is contained in:
2026-01-03 02:48:52 +03:00
parent 8273ede069
commit ce938fe1fc
5 changed files with 160 additions and 26 deletions
@@ -0,0 +1,11 @@
import io
import qrcode
def generate_qr_bytes(text: str) -> bytes:
"""Generate QR code as PNG bytes."""
img = qrcode.make(text)
with io.BytesIO() as buffer:
img.save(buffer)
return buffer.getvalue()