Dataclasses Serialization

dataclasses_serialization provides serializers/deserializers for transforming between Python dataclasses, and JSON and BSON objects.

Brief supported features summary:

  • dataclasses

  • attrs classes

  • python native types (including Enums)

  • relativedelta (dateutil)

  • numpy (int64, bool, ndarray)

  • key normalization for python (underscore) and java (camelCase) conventions

  • bson

Note

This documentation is for the fork at https://github.com/gabis-precog/python-dataclasses-serialization. This project is (or aims to be) backwards compatible with the original project, So some documentation here may apply to (and is based on the documentation of) the original.

Indices and tables