Skip to content

Instantly share code, notes, and snippets.

@wfng92
Last active September 15, 2020 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wfng92/389eaa597d66f1fc5524650f0f45085b to your computer and use it in GitHub Desktop.
Save wfng92/389eaa597d66f1fc5524650f0f45085b to your computer and use it in GitHub Desktop.
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