QR(1)
QR β¨π (the Python QR tool, bestie edition)
okay so you know qr, right? no? literally the manual name is qr, it lives in section 1 of the manual, and it's from the Python QR tool β and it's about to become your new main character. π
πΈ NAME πΈ
qr β a script to create QR codes at the command line π
β¨ SYNOPSIS β¨
qr [--help] [--factory=FACTORY] [--optimize=OPTIMIZE]
[--error-correction=LEVEL] [data]
like. that's it. that's the whole vibe. π¦
π DESCRIPTION π
bestie listen. this script uses the python qrcode module. it can take data from stdin or from the commandline, and then it generates a QR code. π«Ά
normally it will output the QR code as ascii art to the terminal. but β plot twist β if the output is piped to a file, it will output the image instead (default type of PNG). the way it just switches up on you based on where the output's going?? iconic. no cap. πβ¨
π OPTIONS π
-h,--helpβ show a help message. that's it, that's the whole job, and it ate. π--factory=FACTORYβ full python path to the image factory class to create the image with. and because we're nice, you can use these shortcuts to the built-in image factory classes:pil(default),png(default if pillow is not installed),svg,svg-fragment,svg-path. pick your fighter π--optimize=OPTIMIZEβ optimize the data by looking for chunks of at least this many characters that could use a more efficient encoding method. use0to turn off chunk optimization. she's efficient, she's thorough, she's that girl. β¨--error-correction=LEVELβ the error correction level to use. choices areL(7%),M(15%, default),Q(25%), andH(30%). go higher if you want your code to survive being scuffed, bestie π¦dataβ the data from which the QR code will be generated. the whole point. the moment. the reason we're all here. π
π₯ SEE ALSO π₯
https://github.com/lincolnloop/python-qrcode/β go, go look, i'll wait π«Ά
heads up bestie:--error-correctiononly takesL,M,Q, orH. don't be out here typing vibes into it, okay? π
and that's the page!! π this little gem is version 7.4.2, dated 6 Feb 2023, from the Python QR tool β and honestly? she served. slay, stay hydrated, go make some QR codes. periodt. π
πβ
QR(1) π Python QR tool π¦
π¦ where this page comes from
- centos-stream 10: python3-qrcode 7.4.2-13.el10 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms