ean-tools 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ean-tools
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Collection of tools for validating and getting information about EAN (UPC, GTIN) and ISBN barcodes.
5
5
  Home-page: https://github.com/ean-db/ean-tools
6
6
  License: MIT
@@ -25,7 +25,7 @@ Collection of tools for validating and getting information about EAN (UPC, GTIN)
25
25
  ## Installation
26
26
 
27
27
  ```commandline
28
- pip install affix-tree
28
+ pip install ean-tools
29
29
  ```
30
30
 
31
31
  ## Usage
@@ -5,7 +5,7 @@ Collection of tools for validating and getting information about EAN (UPC, GTIN)
5
5
  ## Installation
6
6
 
7
7
  ```commandline
8
- pip install affix-tree
8
+ pip install ean-tools
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -19,7 +19,7 @@ def normalize_barcode(barcode: str, is_isbn: Optional[bool] = None) -> str:
19
19
  ValueError: If the barcode is invalid or ambiguous.
20
20
  """
21
21
  barcode = re.sub(r'[\s-]', '', barcode)
22
- if not barcode or not barcode.isdigit() or barcode == '0' * len(barcode):
22
+ if not barcode or not barcode.isdecimal() or barcode == '0' * len(barcode):
23
23
  raise ValueError("Doesn't look like a barcode")
24
24
 
25
25
  barcode_len = len(barcode)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ean-tools"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "Collection of tools for validating and getting information about EAN (UPC, GTIN) and ISBN barcodes."
5
5
  authors = ["EAN-DB <support@ean-db.com>"]
6
6
  license = "MIT"