File: qrcode.py

package info (click to toggle)
markdown-exec 1.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 740 kB
  • sloc: python: 2,497; javascript: 180; makefile: 32; sh: 30
file content (5 lines) | stat: -rw-r--r-- 223 bytes parent folder | download
1
2
3
4
5
import qrcode
from qrcode.image.svg import SvgPathImage

img = qrcode.make("https://github.com/sponsors/lincolnloop", box_size=20, border=2, image_factory=SvgPathImage)
print(f'<div>{img.to_string().decode("utf8")}</div>')