Prefixed

Latest version: v0.7.1

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

Scan your dependencies

Page 1 of 2

0.7.1

**Housekeeping**
- Metadata updates

0.7.0

**Changes**
- Magnitude values are read from a dictionary rather than computed
- This should result in faster and more consistent behavior

0.6.0

**Changes**
- Consistent behavior for `!` flag
- The `!` flag used to drop the space when no prefix was added to the output
- This created issues in cases like `f'{Float(123):!.3H}J'` 4
- `!` will now always add a space after the number

- New flag `!!`
- The new flag `!!` operates like `!`, adding a space between the number and the prefix
- `!!` will drop the space if no prefix is added to the number
- See the [documentation](https://prefixed.readthedocs.io/en/stable/format_spec.html#flags) for more information

0.5.0

**Changes**
- Add new SI prefixes
- [Added at November 2022 General Conference on Weights and Measures](https://metricviews.uk/2022/11/20/first-new-si-prefixes-for-over-30-years/)

| Prefix | Name | Base |
| --------- |---------- | ----- |
| Q | quetta | 10³⁰ |
| R | ronna | 10²⁷ |
| r | ronto | 10⁻²⁷ |
| q | quecto | 10⁻³⁰ |

**Bugfixes**
- In some circumstances significant digits were one decimal place off
- Caused by floating point variance
- Value is now constrained prior to determining significant digits

0.4.2

**Bug Fixes**
- Deprecated format specifiers 'j' and 'J' were not properly handled when passed as Unicode in 2.7
- Fixed and test added to catch regressions

0.4.1

**Bug Fixes**
- Deprecated format specifiers `'j'` and `'J'` were not properly handled
- Fixed and test added to catch regressions

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.