Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Get a unique GTIN from any UPC or EAN barcode
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
barcodify.py
setup.py

README.md

Barcodify

Get a unique GTIN from any UPC or EAN barcode

Usage

from barcodify import GTIN, UPC, EAN, checksum

UPC('04955106')        # 049000005516 UPC-12 from a UPC-8
UPC('0049000005516')   # 049000005516 UPC-12 from a EAN-13

EAN('04955106')        # 0049000005516 EAN-13 from a UPC-8
EAN('049000005516')    # 0049000005516 EAN-13 from a UPC-12/EAN-12

GTIN('04955106')       # 00049000005516 GTIN-14 from a UPC-8
GTIN('049000005516')   # 00049000005516 GTIN-14 from a UPC-12/EAN-12
GTIN('0049000005516')  # 00049000005516 GTIN-14 from a EAN-13

checksum('0495510')             # 6
checksum('04900000551')         # 6
checksum('004900000551')        # 6

Features

  • GTIN-14, UPC-8, UPC-12, EAN-12 and EAN-13 supported

MIT License

opensource.org/licenses/MIT

Something went wrong with that request. Please try again.