Python Marshmallow Tutorial

Marshmallow is an ORM/ODM/framework-agnostic library for converting complex data-types, such as objects, to and from native Python data-types. It is help for

  • Validate input data.

  • Deserialize input data to app-level objects.

  • Serialize app-level objects to primitive Python types. The serialized objects can then be rendered to standard formats such as JSON for use in an HTTP API.


Python Marshmallow install by pip

pip install -U marshmallow