-
-
Notifications
You must be signed in to change notification settings - Fork 403
Extensions to attrs
chrysle edited this page Apr 7, 2023
·
24 revisions
The following libraries build on attrs to provide additional functionality or have special support for attrs classes:
-
attrs2bin: Binary serializer for attrs-based classes. -
attrs-strict: runtime validation for attributes specified in attrs dataclasses based on thetypefield provided. -
bfa: Builders forattrs -
cattrs: for structuring and unstructuring data -
datargs: A paper-thin wrapper aroundargparsethat creates type-safe parsers fromdataclassandattrsclasses. -
desert: DRY deserialization for dataclasses and attrs classes. -
marshmallow-attrs: Marshmallow serialization forattrsclasses. -
prettyprinter: an extensible alternative topprintcomes withattrssupport. -
related: for creating nested object models that can be serialized to and de-serialized from nested python dictionaries -
richsupports pretty-printing ofattrsclasses. -
serde: a performant serialization / deserialization extension to and from plain dicts. -
spock: lightweight typed and stateful parameter configuration library (mainly for ML) that wrapsattrs -
typecats: Makeattrsclasses act more like structural (rather than nominal) typing; built on top ofcattrs. -
valid8: provides an alternate way to add validation to attributes, supporting various coding styles to define your validation functions and validation exception types/messages -
yasoo: Serializes and deserializesattrsanddataclassobjects without relying on type hints.