faker.providers.barcodeΒΆ

fake.ean(length=13)
# '7677011738739'

fake.ean13(leading_zero=None)
# '7386054141566'

fake.ean8()
# '17083980'

fake.upc_a(upc_ae_mode=False, base=None, number_system_digit=None)
# '523508298200'

fake.upc_e(base=None, number_system_digit=None, safe_mode=True)
# '02559254'