cam32.barcodes

Various functions for use with barcodes.

cam32.barcodes.get_check_digit(upc)

Calculates the check digit for a UPC-style barcode, and returns it.

cam32.barcodes.convert_upce_to_upca(upce, include_check_digit=True)

Expands upce (which is assumed to be a valid UPC-E barcode) into its full UPC-A equivalent. The return value will have either 11 or 12 digits, depending on include_check_digit.

cam32.barcodes.get_barcode_map(progress_factory=None)

Returns a dictionary whose keys are the barcodes held in CAM32, and whose values are lists of item numbers associated with each barcode.

Previous topic

cam32.ascii

Next topic

cam32.config

This Page