ppf-datamatrix
Python port of https://github.com/datalog/datamatrix-svg
What it is and what it does
ppf.datamatrix is a pure-Python library that generates 2D datamatrix barcodes and outputs them as SVG graphics. It was ported from a JavaScript implementation and provides a simple API: instantiate a DataMatrix object with a string, and get back an SVG representation. The library integrates with IPython, so in Jupyter notebooks or IPython terminals with graphics support, you can display the barcode directly as an image.
The package has no external runtime dependencies, making installation straightforward. It supports Python 3.6 and later and is classified as Beta-stage software. The codebase is stable but aging—the last release was in August 2023, and there have been no recent commits, though the repository remains active and unarchived.
Use it for:
- Generate datamatrix barcodes for product labeling or inventory tracking in manufacturing workflows
- Create SVG barcodes for embedding in web applications or PDF documents
- Visualize datamatrix codes interactively in Jupyter notebooks for testing or demonstration
- Batch-encode data into barcode graphics for supply chain or logistics systems
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates datamatrix codes (2D barcodes) in SVG format from Python, with built-in IPython display support for interactive notebooks.
Yes, if you need to generate datamatrix codes in SVG format and don't require active maintenance. The low install friction, permissive MIT license, and lack of dependencies make it straightforward to adopt. The aging maintenance status means you should verify that the output meets your datamatrix reader compatibility requirements before committing to production use.
Install
ppf-datamatrix on PyPI
pip
pip install ppf-datamatrixuv
uv add ppf-datamatrixpoetry
poetry add ppf-datamatrixInstalling ppf-datamatrix
Before you install
Low install friction with no runtime dependencies. Maintenance is aging—last release was 2023-08-23 and repository shows no recent activity, though it remains unarchived.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, suitable for both open and proprietary projects.
Quickstart
from ppf.datamatrix import DataMatrix
myDataMatrix = DataMatrix('Test!')
Verify before relying
- Whether the SVG output is compatible with modern datamatrix readers and standards
- Performance characteristics when generating large batches of codes
- Whether IPython integration works with current Jupyter versions
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 1,087 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 100,267/month — #12,996 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ppf_datamatrix-0.2-py3-none-any.whl
Keywords: datamatrix, svg, python, ipython, codecs
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pdf417genEncodes text and binary data into PDF417 2D…
permissive · top 15,000 on PyPI
pyStrichpyStrich generates 1D and 2D barcodes (Code 39,…
permissive · top 15,000 on PyPI
pylibdmtxReads and writes Data Matrix barcodes,…
permissive · top 15,000 on PyPI
drawsvgProgrammatically generate SVG images and…
permissive · top 5,000 on PyPI
PyQRCodePyQRCode generates QR codes in pure Python and…
permissive · top 15,000 on PyPI
segnoGenerates QR codes and Micro QR codes…
permissive · top 5,000 on PyPI
fpdfGenerates PDF documents from Python code,…
copyleft · top 5,000 on PyPI
qrcodeGenerates QR codes as images (PNG, SVG) or…
permissive · top 1,000 on PyPI
treepoemGenerates barcodes and QR codes as image…
permissive · top 5,000 on PyPI