A Python command-line utility to create and read QR codes.
-
Activate the virtual environment:
source venv/bin/activate -
Installed libraries:
qrcode[pil]- For creating QR codesopencv-python- For reading/decoding QR codes and image processingpillow- Image handling
python qr_utility.py create <text_or_url> [output_file]Examples:
# Create QR code with default name (qrcode.png)
python qr_utility.py create https://www.github.com
# Create QR code with custom name
python qr_utility.py create https://www.example.com my_qr.png
# Create QR code with text
python qr_utility.py create "Hello, World!" greeting.pngpython qr_utility.py read <image_file>Examples:
# Read QR code from image
python qr_utility.py read qrcode.png
# Read QR code from custom file
python qr_utility.py read my_qr.png- ✅ Generate QR codes from URLs or text
- ✅ Save QR codes as PNG images
- ✅ Read and decode QR codes from images
- ✅ Automatically detect URLs in QR codes
- ✅ Support for multiple QR codes in a single image
- Python 3.14
- Virtual environment (venv)