You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: databind/readme.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,12 @@ If you install the `databind` proxy package, you get matching versions of `datab
41
41
* Support for new-style type hints in older Python versions when using forward refererences (strings or `__future__.annotations`) thanks to [typeapi][]
42
42
*[PEP 604 - Allow writing union types as X | Y](https://www.python.org/dev/peps/pep-0604/)
43
43
*[PEP585 - Type Hinting Generics in Standard Collections](https://www.python.org/dev/peps/pep-0585/))
44
+
* Support for customized serialization and deserialization of types
44
45
* Full runtime type checking during serialization
46
+
* Use "settings" to customize serialization behaviour
47
+
* As global settings per `load()`/`dump()` call: `load(..., settings=[ExtraKeys(True)])`
48
+
* As class-level settings using a decorator: `@Union(style=Union.FLAT)` or `@ExtraKeys(True)`
49
+
* As type-hint level settings using `typing.Annotated` (or `typing_extensions.Annotated`): `full_name: Annotated[str, Alias("fullName")]` or `FullNameField = Annotated[str, Alias("fullName")]`
0 commit comments