Skip to content

Extensions to attrs

python-desert edited this page Oct 22, 2019 · 22 revisions

The following libraries build on attrs to provide additional functionality:

  • attrs-strict: runtime validation for attributes specified in attrs dataclasses based on the type field provided.

  • bfa: Builders for attrs

  • cattrs: for structuring and unstructuring data

  • marshmallow-attrs: Marshmallow serialization for attrs classes.

  • desert: DRY deserialization for dataclasses and attrs classes.

  • prettyprinter: an extensible alternative to pprint comes with attrs 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.

  • valid8: provides an alternate way to add validation to attributes, supporting various coding styles to define your validation functions and validation exception types/messages

Clone this wiki locally