pyzxing
Reliable Python bindings for the ZXing barcode decoder.
Decision gist · record as of 2026-08-14
Yes. pyzxing is actively maintained, has low install friction, carries no known vulnerabilities, and offers a stable, well-documented API for barcode decoding. The MIT license is permissive. The only real constraint is the Java 17+ requirement, which is a runtime dependency, not a blocker for most environments. Install it if you need reliable barcode or QR code decoding with control over decode hints and access to raw metadata.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Java 17 or newer must be available as `java` on PATH; optional OpenCV for NumPy array input.
- Low friction: pure Python wheel with only joblib and numpy as runtime dependencies.
- Active maintenance with a release 28 days ago.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions—suitable for most projects.
last release 2026-07-17 (28 days) · last repo commit 2026-07-17 · 184 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 562,094 downloads/mo, #5,989 on PyPI
Alternatives
Verify before relying
pip install pyzxing
from pyzxing import BarCodeReader
reader = BarCodeReader()
results = reader.decode("/path/to/qrcode.png")
for result in results:
print(result["format"], result["text"])- Performance characteristics when decoding large image batches or high-resolution images.
- Memory overhead of the Java Runner process and whether it persists across multiple decode calls.
- Compatibility with containerized or restricted environments where Java PATH access may be limited.
What it is and what it does
pyzxing is a Python wrapper around the ZXing barcode decoder that delegates decoding to a versioned, checksum-verified Java Runner. It accepts file paths or NumPy arrays and returns a consistent list of dictionaries, each containing decoded text, format, raw bytes, byte segments, result points, orientation, and metadata. The library supports QR Code, Data Matrix, PDF417, Aztec, and common one-dimensional barcode formats, with control over decode hints like format constraints, character sets, and effort levels.
The package runs on Linux, macOS, and Windows with Python 3.8–3.14 and Java 17+. It automatically downloads and verifies the matching ZXing Runner on first use, or can receive it from conda-forge. Runtime dependencies are minimal—only joblib and numpy—making installation straightforward. The API is stable and designed for both single-image and batch (glob) decoding workflows.
Use it for
- Decode QR codes from uploaded images in a web application or document processing pipeline.
- Batch scan a directory of product barcodes to extract SKUs or inventory data.
- Extract binary payloads from QR codes while preserving byte segments for lossless reconstruction.
- Integrate barcode reading into a desktop or server application with explicit format hints to improve accuracy.
- Process video frames or webcam input by converting them to NumPy arrays and decoding on demand.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pyzxing is actively maintained, has low install friction, carries no known vulnerabilities, and offers a stable, well-documented API for barcode decoding. The MIT license is permissive. The only real constraint is the Java 17+ requirement, which is a runtime dependency, not a blocker for most environments. Install it if you need reliable barcode or QR code decoding with control over decode hints and access to raw metadata.
Install
pyzxing on PyPI
Before you install
Low friction: pure Python wheel with only joblib and numpy as runtime dependencies. Active maintenance with a release 28 days ago. Requires Java 17+ on PATH and downloads a pinned ZXing Runner on first use with SHA-256 verification.
Java 17 or newer must be available as `java` on PATH; optional OpenCV for NumPy array input.
License in practice
MIT license permits commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install pyzxing
from pyzxing import BarCodeReader
reader = BarCodeReader()
results = reader.decode("/path/to/qrcode.png")
for result in results:
print(result["format"], result["text"])
Verify before relying
- Performance characteristics when decoding large image batches or high-resolution images.
- Memory overhead of the Java Runner process and whether it persists across multiple decode calls.
- Compatibility with containerized or restricted environments where Java PATH access may be limited.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesjoblibnumpy |
| Maintenance | Actively maintained 28 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 562,094 / month, #5,989 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Financial and Insurance IndustryOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pyzxing-1.2.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “barcode decoding python”
- pyzxingDecode barcodes and QR codes from images or NumPy arrays using ZXing,…
- pyzbarDecodes one-dimensional barcodes and QR codes from images using the…
- pylibdmtxReads and writes Data Matrix barcodes, accepting image objects, numpy…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also pyzbar · zxing-cpp · pylibdmtx · pyStrich · treepoem · qreader · biip · pdf417gen · qrcode · pypylon