Pylette

Latest version: v4.0.1

Safety actively analyzes 710445 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

2.2.0

Changed

- Added `image_bytes` to the `extract_color` function, allowing the user to specify an image as a byte stream to extract
colors from.

2.1.1

Changed

- Added `random_state` to the `KMeans` algorithm to ensure reproducibility. Two separate KMeans extractions now yield
the same palettes. Thanks to opeyemibami for fixing.

2.1.0

Added

- Added type hints for the methods in the `Pylette` package.
- Added integration tests for color extraction. Make sure certain invariants hold for the extracted colors.

Fixed

- Fixed the color conversion from RGB to HLS, and RGB to HSV, which was incorrect.

2.0.1

Fixed

- Regression where `requests` were missing as a dependency.

2.0.0

Added

- Added an `image_url` argument to the `extract_color` function, allowing the user to specify an image URL to extract
colors from.
- Added the `--image-url` argument to the CLI, allowing the user to specify an image URL to extract colors from.

Changed

- Changed the positional argument `filename` to an optional argument in the CLI.

1.0.0

Added

Changed

- Changed `aux.py` to `utils.py`, fixing a platform specific issue on Windows.

Removed

- The Pylette GUI has been removed, due to problems keeping the PyQT-library

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.