Skip to content

Commit 54ee965

Browse files
add more features to readme
1 parent 3bf2635 commit 54ee965

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

databind/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ If you install the `databind` proxy package, you get matching versions of `datab
4141
* Support for new-style type hints in older Python versions when using forward refererences (strings or `__future__.annotations`) thanks to [typeapi][]
4242
* [PEP 604 - Allow writing union types as X | Y](https://www.python.org/dev/peps/pep-0604/)
4343
* [PEP585 - Type Hinting Generics in Standard Collections](https://www.python.org/dev/peps/pep-0585/))
44+
* Support for customized serialization and deserialization of types
4445
* 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")]`
4550

4651
---
4752

0 commit comments

Comments
 (0)