pylibdmtx
Read and write Data Matrix barcodes from Python 2 and 3.
Decision gist · record as of 2026-08-14
Yes, if you need Data Matrix barcode reading or writing and can install the libdmtx library on your system. The package is stable, permissively licensed, and has low install friction. However, maintenance is aging (last release 2022)—evaluate whether you need active support or can accept a stable, mature library. Not recommended if you require cutting-edge Python version support or expect ongoing feature development.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- The libdmtx C library must be installed separately: 'brew install libdmtx' on macOS, 'sudo apt-get install libdmtx0a' on Linux.
- Windows wheels include the DLL.
- Low install friction with a pure-Python wheel distribution.
License · maintenance · safety
MIT (permissive) — Distributed under the MIT license (permissive), so you can use it freely in commercial and private projects. The underlying libdmtx library is under the Simplified BSD license, also permissive.
last release 2022-03-15 (1613 days) · last repo commit 2025-08-20 · 176 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 232,259 downloads/mo, #9,072 on PyPI
Alternatives
Verify before relying
pip install pylibdmtx
from pylibdmtx.pylibdmtx import decode
result = decode(image_data)
print(result) # [Decoded(data='...', rect=Rect(...))]- Whether the package is actively maintained or has entered maintenance-only mode given the 1613-day gap since last release.
- Compatibility with Python versions beyond 3.10 (classifiers list up to 3.10).
- Whether enum34 and pathlib are still necessary runtime dependencies for modern Python versions.
What it is and what it does
pylibdmtx is a Python wrapper around the libdmtx C library that lets you encode text or bytes into Data Matrix barcodes and decode them from images. It works with multiple image formats—image objects, numpy arrays, or raw byte tuples with width and height—making it flexible for different image-processing workflows.
The package is pure Python and has minimal runtime dependencies (enum34 and pathlib), but requires the libdmtx shared library to be installed on your system separately (included in Windows wheels, installed via package manager on Linux/macOS). It decodes barcodes and returns their content and location (left, top, width, height), and encodes strings or bytes into barcode images you can save or further process.
Use it for
- Batch-process images to extract Data Matrix barcode content and locations for inventory or document tracking.
- Generate Data Matrix barcodes from product identifiers and embed them in images for printing or labeling.
- Integrate barcode reading into image-processing pipelines without format conversion overhead.
- Decode barcodes from raw image bytes or image objects in web services or CLI tools.
- Automate cataloging workflows that rely on Data Matrix barcodes for specimen or artifact identification.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need Data Matrix barcode reading or writing and can install the libdmtx library on your system.
The package is stable, permissively licensed, and has low install friction. However, maintenance is aging (last release 2022)—evaluate whether you need active support or can accept a stable, mature library. Not recommended if you require cutting-edge Python version support or expect ongoing feature development.
Install
pylibdmtx on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance is aging—last release was in 2022, though the repository remains unarchived. Runtime dependencies are minimal (enum34 and pathlib), but the underlying libdmtx C library must be installed separately on non-Windows systems.
The libdmtx C library must be installed separately: 'brew install libdmtx' on macOS, 'sudo apt-get install libdmtx0a' on Linux. Windows wheels include the DLL.
License in practice
Distributed under the MIT license (permissive), so you can use it freely in commercial and private projects. The underlying libdmtx library is under the Simplified BSD license, also permissive.
Quickstart
pip install pylibdmtx
from pylibdmtx.pylibdmtx import decode
result = decode(image_data)
print(result) # [Decoded(data='...', rect=Rect(...))]
Verify before relying
- Whether the package is actively maintained or has entered maintenance-only mode given the 1613-day gap since last release.
- Compatibility with Python versions beyond 3.10 (classifiers list up to 3.10).
- Whether enum34 and pathlib are still necessary runtime dependencies for modern Python versions.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesenum34pathlib |
| Maintenance | Aging 1,613 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 232,259 / month, #9,072 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Utilities |
Evidence: pylibdmtx-0.1.10-py2.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 › “data matrix barcode reader”
- pylibdmtxReads and writes Data Matrix barcodes, accepting image objects, numpy…
- pyzxingDecode barcodes and QR codes from images or NumPy arrays using ZXing,…
- biipBiip parses and interprets data encoded in barcodes, including GTIN…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
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.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
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.
See also pyzbar · pyzxing · zxing-cpp · ppf-datamatrix · pyStrich · biip · OpenEXR · pdf417gen · treepoem · qreader