Skip to main content

Biip interprets the data in barcodes.

Project description

📦
Biip

Biip interprets the data in barcodes.

Tests Coverage PyPI


Biip is a Python library for making sense of the data in barcodes.

The library can interpret the following formats:

  • GTIN-8, GTIN-12, GTIN-13, and GTIN-14 numbers, commonly found in EAN-8, EAN-13, UPC-A, UPC-E, and ITF-14 barcodes.

  • GS1 AI element strings, commonly found in GS1-128 barcodes.

Features

  • GS1
    • Parse fixed-length Element Strings
    • Parse variable-length Element Strings
      • Support configuring the separation character
    • Data field enrichment
      • Parse (00) as SSCC
      • Parse (01) and (02) as GTIN
      • Parse dates into datetime objects
        • Interpret the year to be within -49/+50 years from today
        • Interpret dates with "00" as the day as the last day of the month
      • Parse variable measurement fields (price/weight) into Decimal values
    • Encode as Human Readable Interpretation (HRI), e.g. with parenthesis around the AI numbers
  • GTIN (Global Trade Item Number)
  • SSCC
    • Validate check digit
    • Extract GS1 Company Prefix, if possible due to varying field length
    • Extract serial reference, if possible due to varying field length
  • Symbol IDs, e.g. ]EO
    • Use Symbol IDs when automatically selecting what parser to use
    • Strip Symbol IDs before parsing the remainder

Installation

Biip is available from PyPI:

python3 -m pip install biip

Biip requires Python 3.7 or newer.

Usage

This project is still in its infancy. However, some documentation already exists.

License

Biip is copyright 2020 Stein Magnus Jodal and contributors. Biip is licensed under the Apache License, Version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biip-0.2.1.tar.gz (26.4 kB view hashes)

Uploaded Source

Built Distribution

biip-0.2.1-py3-none-any.whl (28.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page