Skip to main content

Collection of tools for validating and getting information about EAN (UPC, GTIN) and ISBN barcodes.

Project description

ean-tools

Collection of tools for validating and getting information about EAN (UPC, GTIN) and ISBN barcodes.

Installation

pip install ean-tools

Usage

Barcode normalization

>>> from ean_tools.normalization import normalize_barcode

>>> normalize_barcode('978-84865-4608-3')

'9788486546083'

Check digit validation

>>> from ean_tools.check_digits import has_correct_check_digit

>>> has_correct_check_digit('8510000076279')

False

Getting additional barcode information

>>> from ean_tools.barcode_info import get_barcode_info, BarcodeType

>>> get_barcode_info('4000000001140')

BarcodeInfo(barcode_type=BarcodeType.REGULAR, description='GS1 Germany', country='de')

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

ean_tools-0.1.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

ean_tools-0.1.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file ean_tools-0.1.2.tar.gz.

File metadata

  • Download URL: ean_tools-0.1.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.0 Darwin/25.2.0

File hashes

Hashes for ean_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 28ba8f8d5d8391c1fc046b8f7b69ab07f6de5960069e17012e8efababb9e9bef
MD5 d856a269bbbe27eb18f478508fbfcd26
BLAKE2b-256 5a6a10b390a5000bca776818d0d91ed186e22f51c3afd540185635fea9de18b8

See more details on using hashes here.

File details

Details for the file ean_tools-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ean_tools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.0 Darwin/25.2.0

File hashes

Hashes for ean_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ccf941a9991d1c8b565b44875ebd47f82fae0f97367e28617edda92e3ab7b53
MD5 c2daf2d3b500038cc3dd677b1bca5bd0
BLAKE2b-256 35abad12841cce2ce0be5d9fedd7cbf5aa0f996af1122aa5e5fa3a99d8e58ed0

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