Skip to content

bindreams/zint-bindings

Repository files navigation

Zint Bindings

This project provides Python bindings for Zint: a cross-platform open source barcode generating solution.

Features:

  • 50+ barcode types;
  • Text or binary data encoding;
  • Export image to:
    • PNG;
    • BMP;
    • GIF;
    • PCX;
    • TIF;
    • EMF;
    • EPS;
    • SVG;
  • Configurable options:
    • Size;
    • Color;
    • Error correction;
    • Rotation;
    • ...and much more depending on the barcode type.
>>> from zint import Symbol, Symbology
>>> x = Symbol()
>>> x.symbology = Symbology.QRCODE
>>> x.encode("https://github.com/bindreams/zint-bindings")
>>> x.outfile = "qrcode.png"
>>> x.print()  # All done!

Install the package with:

pip install zint-bindings

Detailed instructions and usage examples are available in the official documentation.

License

Copyright 2024, Anna Zhukova

This project is licensed under the Apache 2.0 license. The license text can be found at LICENSE.md.

These bindings are based on the API portion of the Zint project, which is licensed under the BSD 3-clause license. See more information at src/zint/external/zint/LICENSE.