Ochre

Latest version: v0.4.0

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

Scan your dependencies

0.4.0

This **feature release** provides a simple `ColorPair` type that can to extended in the future (for low contrast detection, for instance).

We also made all color types hashable, **breaking change**, since they must be immutable.

Update the library using pip:

console
$ pip install -U ochre


What's Changed

* Increased the robustness of color comparisons (fec9475646337990a9fa40a7d0146c05e9f6fbfd, 5d52977249f6f3d29334500ec31be64cae6a0928, 4d001d3a6f819830f7ffcd8abed4ce032cde1b04)
* Added the `ColorPair` type (a3408b08ef77bf31f52f732f0d346860e6afa447)
* Made all concrete types immutable and hashable (8e666f12025f629003fdd1ec6b5cde106789f681, 588b03392875ff27629b7094d92f6a340a415c60)
* Bump pytest to 6.2.5 by dependabot in https://github.com/getcuia/ochre/pull/19
* Bump hypothesis to 6.31.6 by dependabot in https://github.com/getcuia/ochre/pull/25
* Bump mypy to 0.920 by dependabot in https://github.com/getcuia/ochre/pull/26

0.1.1

This a patch release. Install it with

console
$ pip install ochre


Changes

- Invalid colors raise `ValueError`s at initialization (12, 2c5c585206aa01ee4a6f44aa046d79ede8214c10)

0.1.0

This is the first release of ochre 🎉, a tiny Python package for working with colors.

ochre is meant to be easy to use, simple, and focus on human color perception.

Notable features

- Companion API to [colorsys](https://docs.python.org/3/library/colorsys.html)
- Support for RGB (red-green-blue) and HCL (hue-chroma-luminance) color spaces
- [Extended web colors](https://en.wikipedia.org/wiki/Web_colors#Extended_colors)
- Back and forth conversions
- Well tested
- Zero dependencies

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.