from epcpy.epc_schemes import SGTIN from epcpy.epc_schemes.sgtin import SGTINFilterValue serial = 10000 sgtin2 = SGTIN.from_gtin_plus_serial('6955837641053',serial,9) print(sgtin2.hex(binary_coding_scheme=SGTIN.BinaryCodingScheme.SGTIN_96, filter_value=SGTINFilterValue.POS_ITEM))