Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast_qr_py-0.1.1.tar.gz (26.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fast_qr_py-0.1.1-cp313-abi3-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.13+macOS 11.0+ ARM64

fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

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

Hashes for fast_qr_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9516fa5fcd725296d6ec7a5ccf36522ea0d04a1797331b0a2a295e78901ab6b2
MD5 316baf8fa8e8b3b703b74c39ebe2fc01
BLAKE2b-256 eb68b27f4f00d2187582a9047134cac41ff74b9c54b8d690c73520a203ae10ce

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fast_qr_py-0.1.1-cp313-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fast_qr_py-0.1.1-cp313-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc486de2bcabc79f2bc5b761e198349c49473c92995580d20b57d00b06ff00da
MD5 e5142250c0861b486d8c5b83d472d253
BLAKE2b-256 1d906c26f02c7068b5025dfa8833a23569e49c0ade1dbaf5a853d4544193e033

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

File hashes

Hashes for fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 80bf16c77c15a7e65043abc42be96f9d9380744d3a060df15ddc70afcfae4721
MD5 0176a150958626701724a5fd498435c9
BLAKE2b-256 8f4622c422c876d6193e2135ad21c6b1844d68fb6c8e5c039769a89acf4b1f6c

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fast_qr_py-0.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f7d2f08447e53c98e68912829242cc33e87202930ad1023e5ac9dd0db5c85747
MD5 989e5eb423d28790aa35665042d428f5
BLAKE2b-256 a0c1dbdfdbe0b865abd471440ab84a3bd181eacc872a8fd32737abbc2c27bf2b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page