Beautiful, developer-friendly QR codes — generate in batches with parallel processing
Project description
batchqr
Generate QR codes in large batches with parallel processing.
Features
- Batch generation — process thousands of QR codes in parallel
- Multiple input formats — CSV, JSON, Excel, or Python lists
- Multiple output formats — PNG, SVG, PDF, EPS
- Flexible export — individual files, ZIP archives, or PDF label sheets
- Styling — custom colors, logo overlays, preset themes
- CLI & API — use from the command line or as a Python library
- Fault-tolerant — per-item error handling, failed items don't kill the batch
Installation
pip install batchqr
With optional dependencies:
pip install batchqr[pdf] # PDF sheet export
pip install batchqr[excel] # Excel input support
pip install batchqr[all] # Everything
Quick Start
Python API
import batchqr
# Single QR code
batchqr.make("https://example.com").save("qr.png")
# Batch generation
results = batchqr.batch([
"https://example.com/1",
"https://example.com/2",
"https://example.com/3",
]).save_all("./qrcodes/")
From CSV
import batchqr
batchqr.batch.from_csv("data.csv").save_zip("qrcodes.zip")
CLI
# Generate from inline data
batchqr make "https://example.com" -o qr.png
# Batch from CSV
batchqr batch data.csv --output ./qrcodes/
# Legacy CLI still works
qrbatch generate --input data.csv --output ./qrcodes/ --format png
Configuration
from batchqr import QRConfig
config = QRConfig(
error_correction="H", # L, M, Q, H
box_size=10,
border=4,
fg_color="#000000",
bg_color="#ffffff",
image_format="png",
)
Styling
import batchqr
# Use a preset theme
qr = batchqr.make("https://example.com").theme("corporate-blue").save("styled.png")
# Or customize directly
qr = batchqr.make("https://example.com").color("#1a1a2e", "#ffffff").style("rounded").save("custom.png")
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
MIT LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file batchqr-1.0.1.tar.gz.
File metadata
- Download URL: batchqr-1.0.1.tar.gz
- Upload date:
- Size: 51.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9e6b2e18e2be57cc833d39375c51097794b96a3552e3f5e4b31d5a5eed44790
|
|
| MD5 |
e7ab7120a69ecc363e6cf65412a1bd89
|
|
| BLAKE2b-256 |
33c56bc2371ca58eaed5798ff183f69986729fcd5c83fce3664471e5c81a8933
|
Provenance
The following attestation bundles were made for batchqr-1.0.1.tar.gz:
Publisher:
publish.yml on agp19d/batchqr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
batchqr-1.0.1.tar.gz -
Subject digest:
c9e6b2e18e2be57cc833d39375c51097794b96a3552e3f5e4b31d5a5eed44790 - Sigstore transparency entry: 1237842653
- Sigstore integration time:
-
Permalink:
agp19d/batchqr@f0234d40b3ef345f18bad69c3474d345b0237128 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/agp19d
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f0234d40b3ef345f18bad69c3474d345b0237128 -
Trigger Event:
push
-
Statement type:
File details
Details for the file batchqr-1.0.1-py3-none-any.whl.
File metadata
- Download URL: batchqr-1.0.1-py3-none-any.whl
- Upload date:
- Size: 44.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90118fc901ef875381d6c0873557a34f1c3c8e1c3960cd69cae4131d1dfe3dc4
|
|
| MD5 |
eac50a087e60e568c9d4b36abb30f2cc
|
|
| BLAKE2b-256 |
3fa61073be822bb29b5abf75002e0e8e1e0a13007fa8605c6ff6dc4bd95f319b
|
Provenance
The following attestation bundles were made for batchqr-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on agp19d/batchqr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
batchqr-1.0.1-py3-none-any.whl -
Subject digest:
90118fc901ef875381d6c0873557a34f1c3c8e1c3960cd69cae4131d1dfe3dc4 - Sigstore transparency entry: 1237842756
- Sigstore integration time:
-
Permalink:
agp19d/batchqr@f0234d40b3ef345f18bad69c3474d345b0237128 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/agp19d
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f0234d40b3ef345f18bad69c3474d345b0237128 -
Trigger Event:
push
-
Statement type: