Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyStrich

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyStrich

PyStrich is a Python module to generate 1D and 2D barcodes (Code 39, Code 128, DataMatrix, QRCode and EAN13). Forked from huBarcode.

  • 0.8
  • PyPI
  • Socket score

Maintainers
1

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

Build Status

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())

Sample of DataMatrix generated by the code above.

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc