pyStrich
pyStrich is a Python module to generate 1D and 2D barcodes. Currently it supports
- code39
- code128
- ean13
- datamatrix
- qrcode - see known issues
Available from PyPI: https://pypi.python.org/pypi/pyStrich
Usage
The interface of the different encoders is fairly straightforward:
from pystrich.datamatrix import DataMatrixEncoder
encoder = DataMatrixEncoder("This is a DataMatrix.")
encoder.save( "sample_barcodes/datamatrix_test.png" )
print(encoder.get_ascii())
Relevant imports are:
from pystrich.code39 import Code39Encoder
from pystrich.code128 import Code128Encoder
from pystrich.datamatrix import DataMatrixEncoder
from pystrich.ean13 import EAN13Encoder
from pystrich.qrcode import QRCodeEncoder
Known Issues
Code39, Code128 and DataMatrix support is considered by the maintainer to be good and they are known to be used in production.
The maintainer rarely uses EAN13 or QRCode support. You may wish to consider more actively maintained modules.
The maintainer has no plans to fix the following issues:
- Some QR codes cause an exception to be thrown - root cause unknown - see issue 8.
- DataMatrix module only supports up to 174 characters or 348 digits of data - see issue 2.
Background
pyStrich is a fork of huBarcode module with modifications to support Python 3 (amongst other changes). pyStrich only supports encoding not decoding.
huBarcode was developed by HuDoRa from at least 2007, the project does not seem to have been active since late 2013. Method B Ltd has forked it to provide Python 3 support and facilitate future development. Thank you to the folks at HuDoRa for doing most of the hard work, porting was the easy part.
License
If you worry about copyright you might consider this Software BSD-Licensed. If you are still worried, you might consider it GPL1/2/3 compatible. But don't worry. If you need something formal: The code is available under the Apache License, Version 2.0.
Metadata
Release files for pyStrich 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pystrich-0.10.tar.gz | 1.0 MB | With provenance | Details for pystrich-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pystrich-0.10-py3-none-any.whl | Python 3 | none | any | Details for pystrich-0.10-py3-none-any.whl |
Total release size: 2.1 MB
Release files / pystrich-0.10.tar.gz
| Download URL | pystrich-0.10.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5adafa19f22da2bc087e5b10cbe22e4cc87f0fc43a5b9d370dce33e8d7b99bac
|
|
BLAKE2b-256 checksum How to use checksums |
3bb00667db0637973ce46638bf6eaf4870ba46942a07e9cecefdd4814a12f585
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2025.
Transparency logRelease files / pystrich-0.10-py3-none-any.whl
| Download URL | pystrich-0.10-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21c9f5512ba53e5756d8a17507b623d2f8a6bc5b31c7d9171a6fe9d08d3f9c2a
|
|
BLAKE2b-256 checksum How to use checksums |
b5ab76eb4ee8f93a515f947da36defc8947d85367e3e9077b9464137bce9f808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2025.
Transparency logSecurity for pyStrich 0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pystrich-0.10.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.