forked from kamo/post-it-contents
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.0 KiB
2.0 KiB
In [6]:
!pip3 install qrcode[pil] --user
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Requirement already satisfied: qrcode[pil] in /Users/1037729/Library/Python/3.8/lib/python/site-packages (7.3.1) Requirement already satisfied: pillow in /Users/1037729/Library/Python/3.8/lib/python/site-packages (from qrcode[pil]) (9.0.1)
In [8]:
import qrcode import qrcode.image.svg def make_qr(title, url): factory = qrcode.image.svg.SvgImage qrgode = qrcode.make(url, image_factory=factory) qrgode.save(f"{title}.svg")
In [9]:
make_qr('exquisite', 'https://hub.xpub.nl/soupboat/xquisite/')
In [ ]: