Constriction

Latest version: v0.4.1

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

Scan your dependencies

Page 2 of 4

0.3.1

Allow 32-bit floating point representations for probabilities in the python API. This considerably simplifies prototyping.

The Rust API still uses 64 bit floating point precision since (i) internal calculations in the `probability` crate are done on `f64`s anyway, and (ii) the Rust API mostly favors iterators over vectors, so conversion to `f64` does not require any copying.

0.3.0

Update rust dependency on `probability` to version 0.20, which now supports `no_std`. This is a breaking change since `constriction` exposes traits from `probability` through its public API.

We also now verify `no_std` compatibility in all CI workflows.

0.2.6

Fix an issue where constructing a categorical probability distribution sometimes lead to an infinite loop (see Issue 20).

0.2.5

Add support for recently released Python 3.11.

0.2.4

Add support for (outdated) Python 3.6 where possible (Linux + Mac).

0.2.3

Adds a .clone() method to all coder in the Python API, and implements Clone for RangeDecoder in the Rust API, which had been left out as an oversight.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.