image-array-and-histogram 2.0.0__tar.gz → 2.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.
Files changed (31) hide show
  1. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/PKG-INFO +16 -14
  2. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/README.md +8 -6
  3. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/_convert.py +3 -3
  4. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram.egg-info/PKG-INFO +16 -14
  5. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram.egg-info/requires.txt +2 -2
  6. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/pyproject.toml +10 -10
  7. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/LICENSE +0 -0
  8. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/__init__.py +0 -0
  9. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/__main__.py +0 -0
  10. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/_accumulator.py +0 -0
  11. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/_compare.py +0 -0
  12. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/_histogram.py +0 -0
  13. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/_report.py +0 -0
  14. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/_stats.py +0 -0
  15. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/_types.py +0 -0
  16. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/cli.py +0 -0
  17. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram/py.typed +0 -0
  18. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/image_array_and_histogram.egg-info/SOURCES.txt +0 -0
  19. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/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.1}/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.1}/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.1}/setup.cfg +0 -0
  23. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/tests/test_accumulator.py +0 -0
  24. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/tests/test_cli.py +0 -0
  25. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/tests/test_compare.py +0 -0
  26. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/tests/test_convert.py +0 -0
  27. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/tests/test_histogram.py +0 -0
  28. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/tests/test_package.py +0 -0
  29. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/tests/test_properties.py +0 -0
  30. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/tests/test_readme_examples.py +0 -0
  31. {image_array_and_histogram-2.0.0 → image_array_and_histogram-2.1.1}/tests/test_stats.py +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: image_array_and_histogram
3
- Version: 2.0.0
3
+ Version: 2.1.1
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
7
- Project-URL: Homepage, https://github.com/rishi-chauhan/my-packages
8
- Project-URL: Issue Tracker, https://github.com/rishi-chauhan/my-packages/issues
9
- Project-URL: Changelog, https://github.com/rishi-chauhan/my-packages/blob/master/CHANGELOG.md
7
+ Project-URL: Homepage, https://github.com/rishi-chauhan/imghist
8
+ Project-URL: Issue Tracker, https://github.com/rishi-chauhan/imghist/issues
9
+ Project-URL: Changelog, https://github.com/rishi-chauhan/imghist/blob/master/CHANGELOG.md
10
10
  Keywords: image,histogram,numpy,pillow,grayscale,statistics,exposure,dataset,cli
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Intended Audience :: Developers
@@ -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
@@ -43,9 +43,9 @@ Dynamic: license-file
43
43
 
44
44
  # image-array-and-histogram
45
45
 
46
- [![CI](https://github.com/rishi-chauhan/my-packages/actions/workflows/ci.yml/badge.svg)](https://github.com/rishi-chauhan/my-packages/actions/workflows/ci.yml)
47
- [![PyPI version](https://img.shields.io/pypi/v/image-array-and-histogram.svg)](https://pypi.org/project/image-array-and-histogram/)
48
- [![Python versions](https://img.shields.io/pypi/pyversions/image-array-and-histogram.svg)](https://pypi.org/project/image-array-and-histogram/)
46
+ [![CI](https://github.com/rishi-chauhan/imghist/actions/workflows/ci.yml/badge.svg)](https://github.com/rishi-chauhan/imghist/actions/workflows/ci.yml)
47
+ [![PyPI](https://img.shields.io/pypi/v/image-array-and-histogram?label=PyPI)](https://pypi.org/project/image-array-and-histogram/)
48
+ [![Python](https://img.shields.io/pypi/pyversions/image-array-and-histogram?label=Python)](https://pypi.org/project/image-array-and-histogram/)
49
49
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
50
50
 
51
51
  Fast image histograms, exposure statistics and histogram comparison for NumPy and Pillow,
@@ -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
 
@@ -250,8 +252,8 @@ Behaviour changes to watch for:
250
252
  ## Development
251
253
 
252
254
  ```sh
253
- git clone https://github.com/rishi-chauhan/my-packages.git
254
- cd my-packages
255
+ git clone https://github.com/rishi-chauhan/imghist.git
256
+ cd imghist
255
257
  pip install -e ".[dev]"
256
258
  ruff check . && ruff format --check . && mypy
257
259
  pytest --cov=image_array_and_histogram --cov-fail-under=95
@@ -1,8 +1,8 @@
1
1
  # image-array-and-histogram
2
2
 
3
- [![CI](https://github.com/rishi-chauhan/my-packages/actions/workflows/ci.yml/badge.svg)](https://github.com/rishi-chauhan/my-packages/actions/workflows/ci.yml)
4
- [![PyPI version](https://img.shields.io/pypi/v/image-array-and-histogram.svg)](https://pypi.org/project/image-array-and-histogram/)
5
- [![Python versions](https://img.shields.io/pypi/pyversions/image-array-and-histogram.svg)](https://pypi.org/project/image-array-and-histogram/)
3
+ [![CI](https://github.com/rishi-chauhan/imghist/actions/workflows/ci.yml/badge.svg)](https://github.com/rishi-chauhan/imghist/actions/workflows/ci.yml)
4
+ [![PyPI](https://img.shields.io/pypi/v/image-array-and-histogram?label=PyPI)](https://pypi.org/project/image-array-and-histogram/)
5
+ [![Python](https://img.shields.io/pypi/pyversions/image-array-and-histogram?label=Python)](https://pypi.org/project/image-array-and-histogram/)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
7
 
8
8
  Fast image histograms, exposure statistics and histogram comparison for NumPy and Pillow,
@@ -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
 
@@ -207,8 +209,8 @@ Behaviour changes to watch for:
207
209
  ## Development
208
210
 
209
211
  ```sh
210
- git clone https://github.com/rishi-chauhan/my-packages.git
211
- cd my-packages
212
+ git clone https://github.com/rishi-chauhan/imghist.git
213
+ cd imghist
212
214
  pip install -e ".[dev]"
213
215
  ruff check . && ruff format --check . && mypy
214
216
  pytest --cov=image_array_and_histogram --cov-fail-under=95
@@ -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,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: image_array_and_histogram
3
- Version: 2.0.0
3
+ Version: 2.1.1
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
7
- Project-URL: Homepage, https://github.com/rishi-chauhan/my-packages
8
- Project-URL: Issue Tracker, https://github.com/rishi-chauhan/my-packages/issues
9
- Project-URL: Changelog, https://github.com/rishi-chauhan/my-packages/blob/master/CHANGELOG.md
7
+ Project-URL: Homepage, https://github.com/rishi-chauhan/imghist
8
+ Project-URL: Issue Tracker, https://github.com/rishi-chauhan/imghist/issues
9
+ Project-URL: Changelog, https://github.com/rishi-chauhan/imghist/blob/master/CHANGELOG.md
10
10
  Keywords: image,histogram,numpy,pillow,grayscale,statistics,exposure,dataset,cli
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Intended Audience :: Developers
@@ -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
@@ -43,9 +43,9 @@ Dynamic: license-file
43
43
 
44
44
  # image-array-and-histogram
45
45
 
46
- [![CI](https://github.com/rishi-chauhan/my-packages/actions/workflows/ci.yml/badge.svg)](https://github.com/rishi-chauhan/my-packages/actions/workflows/ci.yml)
47
- [![PyPI version](https://img.shields.io/pypi/v/image-array-and-histogram.svg)](https://pypi.org/project/image-array-and-histogram/)
48
- [![Python versions](https://img.shields.io/pypi/pyversions/image-array-and-histogram.svg)](https://pypi.org/project/image-array-and-histogram/)
46
+ [![CI](https://github.com/rishi-chauhan/imghist/actions/workflows/ci.yml/badge.svg)](https://github.com/rishi-chauhan/imghist/actions/workflows/ci.yml)
47
+ [![PyPI](https://img.shields.io/pypi/v/image-array-and-histogram?label=PyPI)](https://pypi.org/project/image-array-and-histogram/)
48
+ [![Python](https://img.shields.io/pypi/pyversions/image-array-and-histogram?label=Python)](https://pypi.org/project/image-array-and-histogram/)
49
49
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
50
50
 
51
51
  Fast image histograms, exposure statistics and histogram comparison for NumPy and Pillow,
@@ -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
 
@@ -250,8 +252,8 @@ Behaviour changes to watch for:
250
252
  ## Development
251
253
 
252
254
  ```sh
253
- git clone https://github.com/rishi-chauhan/my-packages.git
254
- cd my-packages
255
+ git clone https://github.com/rishi-chauhan/imghist.git
256
+ cd imghist
255
257
  pip install -e ".[dev]"
256
258
  ruff check . && ruff format --check . && mypy
257
259
  pytest --cov=image_array_and_histogram --cov-fail-under=95
@@ -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.1"
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",
@@ -51,9 +51,9 @@ dev = [
51
51
  imghist = "image_array_and_histogram.cli:main"
52
52
 
53
53
  [project.urls]
54
- Homepage = "https://github.com/rishi-chauhan/my-packages"
55
- "Issue Tracker" = "https://github.com/rishi-chauhan/my-packages/issues"
56
- Changelog = "https://github.com/rishi-chauhan/my-packages/blob/master/CHANGELOG.md"
54
+ Homepage = "https://github.com/rishi-chauhan/imghist"
55
+ "Issue Tracker" = "https://github.com/rishi-chauhan/imghist/issues"
56
+ Changelog = "https://github.com/rishi-chauhan/imghist/blob/master/CHANGELOG.md"
57
57
 
58
58
  [tool.setuptools]
59
59
  packages = ["image_array_and_histogram"]
@@ -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"]