Datafiles

Latest version: v2.2.2

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

Scan your dependencies

Page 6 of 7

0.8

- Updated the `datafile(...)` decorator to be used as a drop-in replacement for `dataclass(...)`.
- Added support for loading unlimited levels of nested objects.

0.7

- Added a `YAML_LIBRARY` setting to control the underlying YAML library.
- Fixed ORM methods to handle relative file patterns.
- Updated the `datafile` decorator to be able to be called without parentheses to act as `dataclass`.
- Updated YAML serialization to preserve quotation marks in files.

0.6

- Added a registration system for custom formatter classes.
- Fixed loading of missing attribute from disk for ORM methods.
- Added support for file patterns relative to the current directory.

0.5.1

- Removed unnecessary warning when loading objects.

0.5

- Added an `INDENT_YAML_BLOCKS` setting to optionally use the old serialization behavior.
- Disabled initial file creation when `settings.HOOKS_ENABLED = False` is set.

0.4.2

- Fixed a `TypeError` when converting custom types with `from __future__ import annotations` enabled.

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.