Quantiphy

Latest version: v2.20

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

Scan your dependencies

Page 1 of 4

2.20

- Include full quantities if available in *IncompatibleUnits* errors

2.19

- Added new standard SI scale factors (*Q*, *R*, *r*, *q*).
- Subclasses of `Quantity` with units now convert values to the desired units rather than allowing the units of the class to be overridden by those of the value.
- Added scale factor conversion.
- Added quantity functions: `as_real`, `as_tuple`, `render`, `fixed`, and `binary`.
- Fixed rendering of full precision numbers in `Quantity.fixed()`.
- Added *preferred_units* `Quantity` preference.
- Added “cover” option to *strip_radix* `Quantity` preference.
- Added type hints.

2.18

- Support parameterized unit conversions (such as molarity).
- Allow % to act as a scale factor.
- First argument of scaling functions are now guaranteed to be quantities.
- Added _UnitConversion.fixture_ decorator function.
- Added _UnitConversion.activate_ method (allows overridden converters to be re-activated).

2.17

- Refine the list of currency symbols.
- Allows currency symbols to be given before or after the underlying number.
- Allow _Quantity_ subclasses to be used in scaling if they have units.

2.16

- Add support for — as comment character and make it the default.

2.15

- Updated predefined physical constants to CODATA 2018 values.
- Switched to more permissive MIT license.
- Add feet to the available length/distance unit conversions.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.