Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code Generator

Tests

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.

Features

  • 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 H for 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

Installation

git clone https://github.com/SafraNako/qr-code-generator.git
cd qr-code-generator
pip install -e .

Usage

# 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

Development

pip install -e ".[dev]"
pytest -v

License

MIT — see LICENSE.

About

Generate QR code images from text, URLs, or a batch file, with optional logo embedding.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages