BARCODE GENERATOR USING PYTHON
Source Code:-
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 | # Required Module:- pip install python-barcodefrom barcode import EAN13from barcode.writer import ImageWriterimport random# Pass a number for Barcodebar_num = str(random.randint(149894280329384, 948278712938723))# pass the number with the ImageWriter() my_code = EAN13(bar_num, writer = ImageWriter())# save the Barcodemy_code.save("my_barcode")# Print the Messageprint("Your BarCode Saved Successfully.") |
# Required Module:- pip install python-barcode
from barcode import EAN13
from barcode.writer import ImageWriter
import random
# Pass a number for Barcode
bar_num = str(random.randint(149894280329384, 948278712938723))
# pass the number with the ImageWriter()
my_code = EAN13(bar_num, writer = ImageWriter())
# save the Barcode
my_code.save("my_barcode")
# Print the Message
print("Your BarCode Saved Successfully.")


0 Comments