Skip to content

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, or
  • separator_chars

and replace them with a ParseConfig instance. For example, if you previously used:

result = biip.parse("0107032069804988100329|15210525", separator_chars=["|"])

You should now use:

config = biip.ParseConfig(separator_chars=["|"])
result = biip.parse("0107032069804988100329|15210525", config=config)

biip.gs1 module

biip.gtin module

biip.symbology module