Upgrading from 3.x to 4.x
Result objects are immutable
All the dataclasses returned by Biip are now immutable. This means that you can no longer set attributes on them after they are created.
biip.parse() no longer raises ParseError
biip.parse() no longer raises ParseError
when all parsers fail. This means that you can remove the try/except block
around any calls to biip.parse() and base your logic on the returned
ParseResult. (PR !376)
All config passed via ParseConfig
All parser configuration options have been moved to the
ParseConfig class. (PR !385)
Look for anywhere you use the old configuration options:
rcn_region,rcn_verify_variable_measure, orseparator_chars
and replace them with a ParseConfig instance.
For example, if you previously used:
You should now use:
config = biip.ParseConfig(separator_chars=["|"])
result = biip.parse("0107032069804988100329|15210525", config=config)
biip.gs1 module
-
biip.gs1.checksums.numeric_check_digit()function has moved tobiip.checksums.gs1_standard_check_digit()(PR !375) -
biip.gs1.checksums.price_check_digit()function has moved tobiip.checksums.gs1_price_weight_check_digit()(PR !375) -
biip.gs1.GS1ApplicationIdentifierclass has moved tobiip.gs1_application_identifiers.GS1ApplicationIdentifier(PR !380) -
biip.gs1.GS1ApplicationIdentifier.fnc1_requiredfield has moved tobiip.gs1_application_identifiers.GS1ApplicationIdentifier.separator_required(PR !382) -
biip.gs1.GS1CompanyPrefixclass has moved tobiip.gs1_prefixes.GS1CompanyPrefix(PR !380) -
biip.gs1.GS1ElementStringclass has moved tobiip.gs1_element_strings.GS1ElementString(PR !380, #388) -
biip.gs1.GS1Messageclass has moved tobiip.gs1_messages.GS1Message(PR !380) -
biip.gs1.GS1Message.filter()method has moved tobiip.gs1_element_strings.GS1ElementStrings.filter()(PR !391). Change any use ofgs1_message.filter()togs1_message.element_strings.filter(). -
biip.gs1.GS1Message.get()method has moved tobiip.gs1_element_strings.GS1ElementStrings.get()(PR !391) Change any use ofgs1_message.get()togs1_message.element_strings.get(). -
biip.gs1.GS1Prefixclass has moved tobiip.gs1_prefixes.GS1Prefix(PR !380) -
biip.gs1.GS1Symbologyclass has moved tobiip.symbology.GS1Symbology(PR !379) -
biip.gs1.GS1Symbology.with_ai_element_strings()method has moved tobiip.symbology.GS1Symbology.with_gs1_messages()(PR !392)
biip.gtin module
-
biip.gtin.Rcnclass has moved tobiip.rcn.Rcn(PR !381) -
biip.gtin.RcnRegionclass has moved tobiip.rcn.RcnRegion(PR !381) -
biip.gtin.RcnUsageclass has moved tobiip.rcn.RcnUsage(PR !381)
biip.symbology module
-
biip.symbology.Symbologyclass has moved tobiip.symbology.ISOSymbology(PR !379) -
biip.symbology.SymbologyIdentifier.symbologyfield has moved tobiip.symbology.SymbologyIdentifier.iso_symbology(PR !379)