This page shows a Barcode.
Barcode |
Source code
The following outlines the Python code used:
import barcode from StringIO import StringIO import sys code='5901234123457' file='1112' type='ean13' f1 = file EAN = barcode.get_barcode_class(type) from barcode import generate ean = EAN(code, writer=barcode.writer.ImageWriter()) fullname = ean.save(f1)