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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: biip-0.2.1.tar.gz
  • Upload date:
  • Size: 26.4 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.1.tar.gz
Algorithm Hash digest
SHA256 f1279718d85b3e6dbc8121d52e42686e1fb5f8776e6feb8aa6f5d06373c3cabb
MD5 2d333daa7d839b3d60735011cbc8c87f
BLAKE2b-256 f0e8879aabf5e6973e9f877802c189054cfe98b349bc37d26be225ef5b7ff0ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biip-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b318bcb65c5962a7326da4b587c5731147c5981ee047c8f5a1bb4b5e21a1b85
MD5 4d5c6bb44c39cf47e9822d31759910c2
BLAKE2b-256 e2bcdf64eb863892cc60240abbf4a687cb5a91128473c0b63cb13f6afa17e473

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