image-array-and-histogram 2.0.0__tar.gz → 2.1.0__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.
Files changed (31) hide show
  1. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/PKG-INFO +8 -6
  2. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/README.md +3 -1
  3. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/_convert.py +3 -3
  4. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram.egg-info/PKG-INFO +8 -6
  5. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram.egg-info/requires.txt +2 -2
  6. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/pyproject.toml +7 -7
  7. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/LICENSE +0 -0
  8. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/__init__.py +0 -0
  9. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/__main__.py +0 -0
  10. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/_accumulator.py +0 -0
  11. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/_compare.py +0 -0
  12. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/_histogram.py +0 -0
  13. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/_report.py +0 -0
  14. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/_stats.py +0 -0
  15. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/_types.py +0 -0
  16. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/cli.py +0 -0
  17. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram/py.typed +0 -0
  18. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram.egg-info/SOURCES.txt +0 -0
  19. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram.egg-info/dependency_links.txt +0 -0
  20. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram.egg-info/entry_points.txt +0 -0
  21. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/image_array_and_histogram.egg-info/top_level.txt +0 -0
  22. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/setup.cfg +0 -0
  23. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/tests/test_accumulator.py +0 -0
  24. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/tests/test_cli.py +0 -0
  25. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/tests/test_compare.py +0 -0
  26. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/tests/test_convert.py +0 -0
  27. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/tests/test_histogram.py +0 -0
  28. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/tests/test_package.py +0 -0
  29. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/tests/test_properties.py +0 -0
  30. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/tests/test_readme_examples.py +0 -0
  31. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.0}/tests/test_stats.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: image_array_and_histogram
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Fast image histograms, exposure statistics and histogram comparison for NumPy/Pillow, with a CLI.
5
5
  Author: Rishi Raj Singh Chauhan
6
6
  License-Expression: MIT
@@ -14,20 +14,20 @@ Classifier: Intended Audience :: Science/Research
14
14
  Classifier: Environment :: Console
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3 :: Only
17
- Classifier: Programming Language :: Python :: 3.10
18
17
  Classifier: Programming Language :: Python :: 3.11
19
18
  Classifier: Programming Language :: Python :: 3.12
20
19
  Classifier: Programming Language :: Python :: 3.13
21
20
  Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Programming Language :: Python :: 3.15
22
22
  Classifier: Operating System :: OS Independent
23
23
  Classifier: Topic :: Multimedia :: Graphics
24
24
  Classifier: Topic :: Scientific/Engineering :: Image Processing
25
25
  Classifier: Typing :: Typed
26
- Requires-Python: >=3.10
26
+ Requires-Python: >=3.11
27
27
  Description-Content-Type: text/markdown
28
28
  License-File: LICENSE
29
- Requires-Dist: numpy>=1.23
30
- Requires-Dist: Pillow>=10.0
29
+ Requires-Dist: numpy>=1.23.2
30
+ Requires-Dist: Pillow>=13.0.0
31
31
  Provides-Extra: plot
32
32
  Requires-Dist: matplotlib>=3.7; extra == "plot"
33
33
  Provides-Extra: dev
@@ -65,7 +65,9 @@ pip install image-array-and-histogram
65
65
  pip install "image-array-and-histogram[plot]"
66
66
  ```
67
67
 
68
- Requires Python 3.10+, NumPy 1.23+ and Pillow 10+. The package ships type hints.
68
+ Requires Python 3.11+ (tested on 3.11–3.15), NumPy 1.23.2+ and Pillow 13+. The minimum
69
+ Pillow version is the first release without publicly known security vulnerabilities, since
70
+ this library opens arbitrary image files. The package ships type hints.
69
71
 
70
72
  ## Quick start
71
73
 
@@ -22,7 +22,9 @@ pip install image-array-and-histogram
22
22
  pip install "image-array-and-histogram[plot]"
23
23
  ```
24
24
 
25
- Requires Python 3.10+, NumPy 1.23+ and Pillow 10+. The package ships type hints.
25
+ Requires Python 3.11+ (tested on 3.11–3.15), NumPy 1.23.2+ and Pillow 13+. The minimum
26
+ Pillow version is the first release without publicly known security vulnerabilities, since
27
+ this library opens arbitrary image files. The package ships type hints.
26
28
 
27
29
  ## Quick start
28
30
 
@@ -68,8 +68,8 @@ def _pil_to_array(image: Image.Image, channels: Channels) -> NDArray[Any]:
68
68
  if channels == "rgb":
69
69
  raise ValueError(f"channels='rgb' requires a colour image; got mode {image.mode!r}")
70
70
  arr = _native_byteorder(np.asarray(image))
71
- # Older Pillow versions open 16-bit PNGs as 32-bit mode "I"; treat data that
72
- # fits in 16 bits as uint16 so results don't depend on the Pillow version.
71
+ # Some decoders (and older Pillow versions) deliver 16-bit data as 32-bit mode "I";
72
+ # treat data that fits in 16 bits as uint16 so results don't depend on the source.
73
73
  if image.mode == "I" and arr.size and arr.min() >= 0 and arr.max() <= 65535:
74
74
  return arr.astype(np.uint16)
75
75
  return arr
@@ -139,7 +139,7 @@ def get_image_array(
139
139
  numpy.ndarray
140
140
  The pixel data. The native bit depth is kept: 8-bit images give uint8,
141
141
  16-bit images (``I;16``) give uint16, ``I`` gives int32 (uint16 when all
142
- values fit in 16 bits, since older Pillow opens 16-bit PNGs as ``I``) and
142
+ values fit in 16 bits, since some decoders deliver 16-bit data as ``I``) and
143
143
  ``F`` gives float32.
144
144
 
145
145
  Raises
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: image_array_and_histogram
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Fast image histograms, exposure statistics and histogram comparison for NumPy/Pillow, with a CLI.
5
5
  Author: Rishi Raj Singh Chauhan
6
6
  License-Expression: MIT
@@ -14,20 +14,20 @@ Classifier: Intended Audience :: Science/Research
14
14
  Classifier: Environment :: Console
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3 :: Only
17
- Classifier: Programming Language :: Python :: 3.10
18
17
  Classifier: Programming Language :: Python :: 3.11
19
18
  Classifier: Programming Language :: Python :: 3.12
20
19
  Classifier: Programming Language :: Python :: 3.13
21
20
  Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Programming Language :: Python :: 3.15
22
22
  Classifier: Operating System :: OS Independent
23
23
  Classifier: Topic :: Multimedia :: Graphics
24
24
  Classifier: Topic :: Scientific/Engineering :: Image Processing
25
25
  Classifier: Typing :: Typed
26
- Requires-Python: >=3.10
26
+ Requires-Python: >=3.11
27
27
  Description-Content-Type: text/markdown
28
28
  License-File: LICENSE
29
- Requires-Dist: numpy>=1.23
30
- Requires-Dist: Pillow>=10.0
29
+ Requires-Dist: numpy>=1.23.2
30
+ Requires-Dist: Pillow>=13.0.0
31
31
  Provides-Extra: plot
32
32
  Requires-Dist: matplotlib>=3.7; extra == "plot"
33
33
  Provides-Extra: dev
@@ -65,7 +65,9 @@ pip install image-array-and-histogram
65
65
  pip install "image-array-and-histogram[plot]"
66
66
  ```
67
67
 
68
- Requires Python 3.10+, NumPy 1.23+ and Pillow 10+. The package ships type hints.
68
+ Requires Python 3.11+ (tested on 3.11–3.15), NumPy 1.23.2+ and Pillow 13+. The minimum
69
+ Pillow version is the first release without publicly known security vulnerabilities, since
70
+ this library opens arbitrary image files. The package ships type hints.
69
71
 
70
72
  ## Quick start
71
73
 
@@ -1,5 +1,5 @@
1
- numpy>=1.23
2
- Pillow>=10.0
1
+ numpy>=1.23.2
2
+ Pillow>=13.0.0
3
3
 
4
4
  [dev]
5
5
  pytest>=8
@@ -1,19 +1,19 @@
1
1
  [build-system]
2
- requires = ["setuptools>=77", "wheel"]
2
+ requires = ["setuptools>=84.1.0"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "image_array_and_histogram"
7
- version = "2.0.0"
7
+ version = "2.1.0"
8
8
  description = "Fast image histograms, exposure statistics and histogram comparison for NumPy/Pillow, with a CLI."
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Rishi Raj Singh Chauhan" }]
11
11
  license = "MIT"
12
12
  license-files = ["LICENSE"]
13
- requires-python = ">=3.10"
13
+ requires-python = ">=3.11"
14
14
  dependencies = [
15
- "numpy>=1.23",
16
- "Pillow>=10.0",
15
+ "numpy>=1.23.2",
16
+ "Pillow>=13.0.0",
17
17
  ]
18
18
  keywords = ["image", "histogram", "numpy", "pillow", "grayscale", "statistics", "exposure", "dataset", "cli"]
19
19
  classifiers = [
@@ -23,11 +23,11 @@ classifiers = [
23
23
  "Environment :: Console",
24
24
  "Programming Language :: Python :: 3",
25
25
  "Programming Language :: Python :: 3 :: Only",
26
- "Programming Language :: Python :: 3.10",
27
26
  "Programming Language :: Python :: 3.11",
28
27
  "Programming Language :: Python :: 3.12",
29
28
  "Programming Language :: Python :: 3.13",
30
29
  "Programming Language :: Python :: 3.14",
30
+ "Programming Language :: Python :: 3.15",
31
31
  "Operating System :: OS Independent",
32
32
  "Topic :: Multimedia :: Graphics",
33
33
  "Topic :: Scientific/Engineering :: Image Processing",
@@ -68,7 +68,7 @@ warn_unreachable = true
68
68
 
69
69
  [tool.ruff]
70
70
  line-length = 100
71
- target-version = "py310"
71
+ target-version = "py311"
72
72
 
73
73
  [tool.ruff.lint]
74
74
  select = ["E", "W", "F", "I", "B", "UP", "SIM", "NPY", "RUF", "PERF", "PT", "D"]