Install & Compatibility
Where this runs
tested against v0.1.10 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 19MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
decode
✓ import pylibdmtx.pylibdmtx; decode = pylibdmtx.pylibdmtx.decode
✗ from pylibdmtx import decode
encode
✓ import pylibdmtx.pylibdmtx; encode = pylibdmtx.pylibdmtx.encode
✗ from pylibdmtx import encode
Decode a Data Matrix barcode from an image file.
from PIL import Image
from pylibdmtx.pylibdmtx import decode
image = Image.open('datamatrix.png')
results = decode(image)
for result in results:
print(result.data.decode('utf-8'))
Upgrade
Version history
0.1.10latest on PyPI · released Mar 15, 2022
Audit
Dependencies
PillowrequiredRequired for opening and processing images.
libdmtxrequiredShared library dependency; must be installed on the system.