Skip to main content

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

Metadata

Release files for ean-tools 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ean-tools 0.1.2
File Size Uploaded Provenance Actions
ean_tools-0.1.2.tar.gz 7.7 kB Without provenance Details for ean_tools-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ean-tools 0.1.2
File Interpreter ABI Platform Actions
ean_tools-0.1.2-py3-none-any.whl Python 3 none any Details for ean_tools-0.1.2-py3-none-any.whl

Total release size: 17.8 kB

Release files / ean_tools-0.1.2.tar.gz

Download URL ean_tools-0.1.2.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
28ba8f8d5d8391c1fc046b8f7b69ab07f6de5960069e17012e8efababb9e9bef
BLAKE2b-256 checksum
How to use checksums
5a6a10b390a5000bca776818d0d91ed186e22f51c3afd540185635fea9de18b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.0 CPython/3.13.0 Darwin/25.2.0

Release files / ean_tools-0.1.2-py3-none-any.whl

Download URL ean_tools-0.1.2-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ccf941a9991d1c8b565b44875ebd47f82fae0f97367e28617edda92e3ab7b53
BLAKE2b-256 checksum
How to use checksums
35abad12841cce2ce0be5d9fedd7cbf5aa0f996af1122aa5e5fa3a99d8e58ed0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.0 CPython/3.13.0 Darwin/25.2.0

Security for ean-tools 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page