--- id: pystrich version: "0.19" license: Apache-2.0 license_treatment: permissive maintenance: active --- # pyStrich — PyStrich is a fast pure-Python module to generate 1D and 2D barcodes: Code 39, Code 128 (including GS1-128), EAN-13, ITF-14, Data Matrix (including GS1 Data Matrix), QR Code, PDF417 and Aztec Code. License: permissive · Maintenance: active · Downloads: 80.3K/mo ## What it is and what it does pyStrich is a pure-Python barcode encoder that generates 1D codes (Code 39, Code 128, EAN-13, ITF-14) and 2D codes (Data Matrix, QR Code, PDF417, Aztec) in multiple output formats. It outputs to PNG (with pillow), SVG, EPS, DXF, and terminal text without requiring external binaries or system libraries beyond pillow for raster formats. The package is actively maintained, supports current Python versions (>=3.10), and includes comprehensive typing and test coverage. It depends on pillow and typing-extensions at runtime. Use it when you need to programmatically generate barcodes for inventory, shipping, point-of-sale, or document workflows without external encoding services. Use it for: - Generate shipping labels and tracking barcodes for e-commerce order fulfillment. - Create QR codes for product packaging, marketing materials, or event tickets. - Encode inventory item numbers as Code 128 or EAN-13 for retail or warehouse systems. - Produce Data Matrix codes for GS1 compliance in supply chain applications. - Generate barcodes in SVG format for web applications or PDF documents without raster dependencies. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. pyStrich generates 1D and 2D barcodes (Code 39, Code 128, EAN-13, ITF-14, Data Matrix, QR Code, PDF417, Aztec) in PNG, SVG, EPS, DXF, and terminal formats using pure Python. Yes. pyStrich is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. Install it if you need to generate barcodes in Python without external services or system dependencies (beyond pillow for PNG output). The recent release cadence and modern codebase make it a reliable choice for production use. ## Install pip install pystrich uv add pystrich poetry add pystrich ## Installing pyStrich Before you install: Low install friction with only two runtime dependencies (pillow and typing-extensions). Actively maintained with a release from 2026-07-23. License in practice: Apache-2.0 is permissive; you may use, modify, and distribute pyStrich freely in commercial and private projects with minimal restrictions. Quickstart: pip install pyStrich from pystrich.code128 import Code128 barcode = Code128('ABC') barcode.save('barcode.png') Python >=3.10 required; PNG output requires the pyStrich[png] extra (installs pillow). Verify before relying: - Performance characteristics compared to other barcode libraries (described as 'fast' but no benchmarks provided). - Decoding capability (fact sheet states encoding only, but real-world use cases may need clarification). ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 80.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags barcode generation python, qr code generator, 1d 2d barcode library, code128 code39 python, data matrix aztec qrcode, barcode to png svg, gs1 barcode encoder, barcode-encoding, qr-code, image-generation [View on SkillFed](https://skillfed.io/packages/pystrich) · [View on PyPI](https://pypi.org/project/pystrich/)