Portion

Latest version: v2.6.0

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

Scan your dependencies

Page 5 of 7

1.5.3

Fixed
- Invalid `repr` for atomic singleton intervals.

1.5.2

Fixed
- Invalid comparisons when both `Interval` and `AtomicInterval` are compared.

1.5.1

Fixed
- [1](https://github.com/AlexandreDecan/portion/issues/1) by making empty intervals always resolving to `(P.inf, -P.inf)`.

1.5.0

Added
- `Interval.__init__` accepts `Interval` instances in addition to `AtomicInterval` ones.

1.4.0

Added
- Function `P.to_string` to export an interval to a string, with many options to customize the representation.
- Function `P.from_string` to create an interval from a string, with many options to customize the parsing.

1.3.2

Added
- Support for Python 2.7.

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.