-
-
Notifications
You must be signed in to change notification settings - Fork 382
Extensions to attrs
The following libraries build on attrs
to provide additional functionality:
-
attrs-strict
: runtime validation for attributes specified in attrs dataclasses based on thetype
field provided. -
bfa
: Builders forattrs
-
cattrs
: for structuring and unstructuring data -
clout
: Build command-line interfaces withattrs
classes. -
marshmallow-attrs
: Marshmallow serialization forattrs
classes. -
desert
: DRY deserialization for dataclasses and attrs 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 -
serde
: a performant serialization / deserialization extension to and from plain dicts. -
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. -
datargs
: A paper-thin wrapper aroundargparse
that creates type-safe parsers fromdataclass
andattrs
classes.