A lightweight library for converting complex datatypes to and from native Python datatypes.
Actively maintained. Last release 4 weeks ago, commits in 21 of the last 26 weeks. A safe choice.
pip install marshmallowA lightweight library for converting complex datatypes to and from native Python datatypes.
Actively maintained. Last release 4 weeks ago, commits in 21 of the last 26 weeks. A safe choice.
pip install marshmallowUse instead of marshmallow: tools that do the same job, closest first.
Compare with mashumaro →Compare with pydantic →Compare with msgspec →Compare all 4 →
Fast and well tested serialization library
Data validation using Python type hints
A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML.
A simple schema-based serialization and deserialization library
An extremely flexible and configurable data model conversion library
Easily serialize dataclasses to and from JSON.
Use together with marshmallow: extensions, drivers, servers and companion tools.