Datafiles

Latest version: v2.3

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

Scan your dependencies

Page 6 of 8

0.9

- Fixed serialization of optional nested dataclasses with a value of `None`.
- Fixed preservation of comments on nested dataclass attributes.
- Added support for using `enum.Enum` subclasses as type annotations.

0.8.1

- Fixed loading of `Missing` nested dataclasses attributes.

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.

Page 6 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.