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.0.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

biip-0.2.0-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file biip-0.2.0.tar.gz.

File metadata

  • Download URL: biip-0.2.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.5 Linux/5.3.0-1034-azure

File hashes

Hashes for biip-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d9dc0b540fa239f6430636a749da53fcc3254661f85ae8b46c643e479ce807d2
MD5 da74c1b79847fddf233213061c4cac3c
BLAKE2b-256 762284ec6e02aebb6da50cc58df0fd7fe69f2d4e6674836798aee0139eb6cdbc

See more details on using hashes here.

File details

Details for the file biip-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: biip-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.5 Linux/5.3.0-1034-azure

File hashes

Hashes for biip-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb2830dce0bbd13da01183c6f430c2ccf86b88adaf1452615e9fb4918a3341c7
MD5 627bd48f6a23c1155168f2785b02f77e
BLAKE2b-256 7bce78b616394362b55152912e1324a40b53b21fad13ab89c8adda8472ac7a77

See more details on using hashes here.

Supported by

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