canlib.ean¶
-
class
canlib.ean.EAN(decimal)[source]¶ Bases:
objectHelper object for dealing with European Article Numbers
Depending on the format the ean is in,
EANobjects are created in different ways;- For strings::
- EAN.from_string(‘01-2345-67890-1’)
For BCD-coded bytes or bytearrays (str in python 2):
EAN.from_bcd(b'