A Python CLI for generating QR code images from text or URLs — one at a time or in batch from a text file — with optional logo embedding.
- Single or batch generation — encode one string, or every line of a text file
- Logo embedding — center a logo/image inside the QR code (use
--error-correction Hfor reliable scanning with a logo) - Customizable appearance — box size, border, fill/background color
- Configurable error correction — L / M / Q / H
- Batch input files support blank lines and
#comments
git clone https://github.com/SafraNako/qr-code-generator.git
cd qr-code-generator
pip install -e .# Generate a single QR code
qr-gen generate "https://example.com" -o example.png
# Custom colors and size
qr-gen generate "Hello, world!" -o hello.png --fill-color "#1a1a2e" --back-color white --box-size 12
# Embed a logo in the center (use high error correction so it still scans)
qr-gen generate "https://example.com" -o branded.png --logo logo.png --error-correction H
# Batch mode: one QR code per line in entries.txt
qr-gen batch entries.txt -o output/entries.txt example:
# Product links
https://example.com/product-1
https://example.com/product-2
pip install -e ".[dev]"
pytest -vMIT — see LICENSE.