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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ean_tools-0.1.2-py3-none-any.whl
(10.0 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28ba8f8d5d8391c1fc046b8f7b69ab07f6de5960069e17012e8efababb9e9bef
|
|
| MD5 |
d856a269bbbe27eb18f478508fbfcd26
|
|
| BLAKE2b-256 |
5a6a10b390a5000bca776818d0d91ed186e22f51c3afd540185635fea9de18b8
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ccf941a9991d1c8b565b44875ebd47f82fae0f97367e28617edda92e3ab7b53
|
|
| MD5 |
c2daf2d3b500038cc3dd677b1bca5bd0
|
|
| BLAKE2b-256 |
35abad12841cce2ce0be5d9fedd7cbf5aa0f996af1122aa5e5fa3a99d8e58ed0
|