-
-
Notifications
You must be signed in to change notification settings - Fork 381
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 thetype
field provided. -
bfa
: Builders forattrs
-
cattrs
: for structuring and unstructuring data -
datargs
: A paper-thin wrapper aroundargparse
that creates type-safe parsers fromdataclass
andattrs
classes. -
desert
: DRY deserialization for dataclasses and attrs classes. -
marshmallow-attrs
: Marshmallow serialization forattrs
classes. -
prettyprinter
: an extensible alternative topprint
comes withattrs
support. -
related
: for creating nested object models that can be serialized to and de-serialized from nested python dictionaries -
rich
supports pretty-printing ofattrs
classes. -
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
: Makeattrs
classes 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 deserializesattrs
anddataclass
objects without relying on type hints.