Inifix

Latest version: v5.0.3

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

Scan your dependencies

Page 1 of 7

5.0.3

- TST: validate inifix's pre-commit hooks continuously
- TST: test against CPython 3.14-dev
- BLD: include tests dir in source distributions
- DOC: add conda-forge badge to `README.md`

5.0.2

BUG: fix CPU counting on Linux + Python <=3.12
- this address an edge case where the main process isn't allowed to utilize all CPUs
- the bug cannot be fixed for platforms other than Linux and on Python <3.13
- it is *completely* fixed on Python >=3.13

5.0.1

BUG: fix a crash in inifix-format on single-core machines

5.0.0

API changes

- in version 4.5.0, `inifix.load` and `inifix.loads` used to cast any
integer-compatible string (e.g. `'1.0'`, `'1.'` or `'1e0'`) as a Python `int`.
They now read these as Python `float`s by default. The previous behavior is
still available as an opt-in, using the new argument `integer_parsing='aggressive'`.
Strings such as `'123'` (without a `'.'`, an `'e'` or an `'E'`) are still
parsed as Python `int`s in all cases.

- restrict special "bool-like" unescaped strings to lower, upper, or title cases.
This means that for instance `true`, `TRUE` or `True` are still parsed as
the Python boolean `True`, but e.g. `TruE` isn't.

- add and document `inifix.format_string`, replacing previously
undocumented `inifix.iniformat` (still available for backward compatibility,
but now deprecated)

Bug fixes

- fix a corner case where data would be lost on dump for empty string values
- fix bugs around decoding supported bool values

Other changes

- MNT: drop support for CPython 3.9
- TST: test against CPython 3.13 (both GIL flavor and free-threading flavor)
- TST: setup concurrency testing
- PERF: `inifix-format` (and the associated pre-commit hook) now runs on
multiple threads. The performance gain is modest on stable versions of Python
(as of 3.12), but expected to get more significant in the future (PEP 703).

4.5.0

- DOC: illustate how to write type-safe applications of `inifix.load`
- ENH: `inifix-format` (and pre-commit hook) now validates that formatted data
compares identical to unformatted data (unless `--skip-validation` is passed)

4.4.3

BUG: fix a bug where `inifix-format --diff` would print extraneous trailing newlines

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.