Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from barcode import EAN13
from barcode.writer import ImageWriter
with open('barcode.png', 'wb') as f:
EAN13('123456789102', writer=ImageWriter()).write(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment