Dataclass-deser

Latest version: v0.1.0a2

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

Scan your dependencies

0.1.0alpha.2

This allows customizing deserialization with `DeserializeCustom`, and adds builtin support for a number of additional types.

Features
- Add `DeserializeCustom` abstract class for customizing deserialization.
- Support deserializing `dict[K, V]`
- Support deserializing `Optional[T]`
- Other `Union` types are currently unsupported
- Support default/optional fields in dataclasses

Fixes
- Fix accidental reversal of location keys
- Improve `DeserError` tracking of locations by accepting an explicit `ctx` parameter
- Move deserialization code into seperate `deser` module
- Support deferred evaluation of annotations (1)

**Full Changelog**: https://github.com/Techcable/dataclass-deser/compare/v0.1.0-alpha.1...v0.1.0-alpha.2

0.1.0alpha.1

This is the initial prerelease, with only the most basic functionality.

Documentation is almost completely lacking and there are a bunch of limitations.

This is mostly just to reserve space on pypi.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.