Coder Social home page Coder Social logo

Comments (3)

jodal avatar jodal commented on August 20, 2024

I'm on vacation right now, but will get back to you on this one once I'm back.

from biip.

jodal avatar jodal commented on August 20, 2024

I've release Biip 3.3.0 with a fix for this issue.

>>> from pprint import pprint
>>> import biip
>>> pprint(biip.parse("701197206489"))
ParseResult(value='701197206489',
            symbology_identifier=None,
            gtin=Gtin(value='701197206489',
                      format=GtinFormat.GTIN_12,
                      prefix=GS1Prefix(value='070', usage='GS1 US'),
                      company_prefix=GS1CompanyPrefix(value='0701197'),
                      payload='70119720648',
                      check_digit=9,
                      packaging_level=None),
            gtin_error=None,
            upc=Upc(value='701197206489',
                    format=UpcFormat.UPC_A,
                    number_system_digit=7,
                    payload='70119720648',
                    check_digit=9),
            upc_error=None,
            sscc=None,
            sscc_error="Failed to parse '701197206489' as SSCC: Expected 18 "
                       'digits, got 12.',
            gs1_message=None,
            gs1_message_error='Failed to parse GS1 AI (7011) date/time from '
                              "'972064'.")

from biip.

yaser-fyndiq avatar yaser-fyndiq commented on August 20, 2024

Awesome work @jodal. Thank you!

from biip.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.