QR(1)

πŸ“¦
version 8.2 Β· 2 versions
  • 8.2 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 7.3.1 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

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. use 0 to turn off chunk optimization. she's efficient, she's thorough, she's that girl. ✨
  • --error-correction=LEVEL β€” the error correction level to use. choices are L (7%), M (15%, default), Q (25%), and H (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 πŸ”₯


heads up bestie: --error-correction only takes L, M, Q, or H. 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