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.1.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.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ean_tools-0.1.1.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/24.5.0

File hashes

Hashes for ean_tools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fc0392151ac21f0a21d144bb7919c70213a03b86d2699c24b78f9985ff8855ed
MD5 6273014b9c2667f84c093587fd8d685e
BLAKE2b-256 013c46e4834a14ba592b338e23fc3cebae62706d59f2ad063dd8716bda583af6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ean_tools-0.1.1-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/24.5.0

File hashes

Hashes for ean_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f14d4d69275ac41b4559ff1f621a8ab59f5d8dd995b2dcb9097b84b64b95e88e
MD5 b1df17a24eb428363ca5945bad2226b6
BLAKE2b-256 67b025690070688281ecfa5e936eb55b93cad95d3f73a09f8d96cf2e9121ae57

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