Python bindings for the fast_qr Rust QR code library
Project description
fast-qr-py
[!WARNING]
The bindings were 100% vibe-coded. The code looks legit, doesn’t contain any backdoors, and works as expected - but use it at your own discretion.
Python bindings for the fast_qr Rust QR code library.
Features
- Generate QR codes from strings or bytes
- Control error correction level (L / M / Q / H)
- Force encoding mode (Numeric / Alphanumeric / Byte)
- Force QR code version (1–40)
- Force mask pattern
- Export to SVG with full style customisation
- Export to PNG (raster) with configurable width/height
- Embed images inside QR codes
- Multiple module shapes: Square, Circle, RoundedSquare, Vertical, Horizontal, Diamond
Quick start
from fast_qr import QRBuilder, ECL, Shape, SvgBuilder, ImageBuilder, Color
# Minimal — auto-selects version, ECL=Q, mode=Byte
qr = QRBuilder("https://example.com").build()
print(qr.to_str())
# Custom ECL
qr = QRBuilder("Hello").ecl(ECL.H).build()
# SVG string
svg = SvgBuilder().shape(Shape.RoundedSquare).to_str(qr)
# PNG bytes
png = ImageBuilder().fit_width(400).to_bytes(qr)
Installation
pip install fast-qr-py # once published to PyPI
Or from source (requires Rust ≥ 1.70 and maturin):
uv venv && uv pip install maturin
maturin develop --uv
License
MIT
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 Distributions
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 fast_qr_py-0.1.1.tar.gz.
File metadata
- Download URL: fast_qr_py-0.1.1.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9516fa5fcd725296d6ec7a5ccf36522ea0d04a1797331b0a2a295e78901ab6b2
|
|
| MD5 |
316baf8fa8e8b3b703b74c39ebe2fc01
|
|
| BLAKE2b-256 |
eb68b27f4f00d2187582a9047134cac41ff74b9c54b8d690c73520a203ae10ce
|
Provenance
The following attestation bundles were made for fast_qr_py-0.1.1.tar.gz:
Publisher:
ci-cd.yml on Yolley/fast-qr-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_qr_py-0.1.1.tar.gz -
Subject digest:
9516fa5fcd725296d6ec7a5ccf36522ea0d04a1797331b0a2a295e78901ab6b2 - Sigstore transparency entry: 1191308266
- Sigstore integration time:
-
Permalink:
Yolley/fast-qr-py@704753c3874231ce2220296988868994a9a2857a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Yolley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@704753c3874231ce2220296988868994a9a2857a -
Trigger Event:
push
-
Statement type:
File details
Details for the file fast_qr_py-0.1.1-cp313-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: fast_qr_py-0.1.1-cp313-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.13+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc486de2bcabc79f2bc5b761e198349c49473c92995580d20b57d00b06ff00da
|
|
| MD5 |
e5142250c0861b486d8c5b83d472d253
|
|
| BLAKE2b-256 |
1d906c26f02c7068b5025dfa8833a23569e49c0ade1dbaf5a853d4544193e033
|
Provenance
The following attestation bundles were made for fast_qr_py-0.1.1-cp313-abi3-macosx_11_0_arm64.whl:
Publisher:
ci-cd.yml on Yolley/fast-qr-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_qr_py-0.1.1-cp313-abi3-macosx_11_0_arm64.whl -
Subject digest:
cc486de2bcabc79f2bc5b761e198349c49473c92995580d20b57d00b06ff00da - Sigstore transparency entry: 1191308267
- Sigstore integration time:
-
Permalink:
Yolley/fast-qr-py@704753c3874231ce2220296988868994a9a2857a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Yolley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@704753c3874231ce2220296988868994a9a2857a -
Trigger Event:
push
-
Statement type:
File details
Details for the file fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80bf16c77c15a7e65043abc42be96f9d9380744d3a060df15ddc70afcfae4721
|
|
| MD5 |
0176a150958626701724a5fd498435c9
|
|
| BLAKE2b-256 |
8f4622c422c876d6193e2135ad21c6b1844d68fb6c8e5c039769a89acf4b1f6c
|
Provenance
The following attestation bundles were made for fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
ci-cd.yml on Yolley/fast-qr-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
80bf16c77c15a7e65043abc42be96f9d9380744d3a060df15ddc70afcfae4721 - Sigstore transparency entry: 1191308269
- Sigstore integration time:
-
Permalink:
Yolley/fast-qr-py@704753c3874231ce2220296988868994a9a2857a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Yolley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@704753c3874231ce2220296988868994a9a2857a -
Trigger Event:
push
-
Statement type:
File details
Details for the file fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7d2f08447e53c98e68912829242cc33e87202930ad1023e5ac9dd0db5c85747
|
|
| MD5 |
989e5eb423d28790aa35665042d428f5
|
|
| BLAKE2b-256 |
a0c1dbdfdbe0b865abd471440ab84a3bd181eacc872a8fd32737abbc2c27bf2b
|
Provenance
The following attestation bundles were made for fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
ci-cd.yml on Yolley/fast-qr-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
f7d2f08447e53c98e68912829242cc33e87202930ad1023e5ac9dd0db5c85747 - Sigstore transparency entry: 1191308268
- Sigstore integration time:
-
Permalink:
Yolley/fast-qr-py@704753c3874231ce2220296988868994a9a2857a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Yolley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@704753c3874231ce2220296988868994a9a2857a -
Trigger Event:
push
-
Statement type: