Comparison
dataclass-wizard vs mashumaro vs msgspec vs ujson
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A wizard-like JSON serialization library for Python dataclasses
Maintained. Last release 5 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install dataclass-wizardFast and well tested serialization library
Actively maintained. Last release 2 months ago, commits in 13 of the last 26 weeks. A safe choice.
pip install mashumaroA fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML.
Actively maintained. Last release 3 days ago, commits in 19 of the last 26 weeks. A safe choice.
pip install msgspecUltra fast JSON encoder and decoder for Python
Actively maintained. Last release 4 weeks ago, commits in 11 of the last 26 weeks. A safe choice.
pip install ujsonIn short
- msgspec is the most used: 40.6M downloads a month.
- Maintenance is comparable: ujson 89, mashumaro 84, msgspec 83, dataclass-wizard 52 on Pythie’s Index.
- msgspec is growing fastest: downloads +13% over the last month.
- Safe default for a new project: msgspec.
Side by side
| Metric | dataclass-wizard | mashumaro | msgspec | ujson |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 52 | Pythie’s Index: 84 | Pythie’s Index: 83 | Pythie’s Index: 89 |
| Verdict | Maintained | Actively maintained | Actively maintained | Actively maintained |
| Downloads / month | 2M | 28.9M | 40.6M | 28.6M |
| Downloads, month over month | -4% | +8% | +13% | -1% |
| GitHub stars | 250 | 946 | 4.2K | 4.5K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 63 | 236 | 944 | 811 |
| Last release | Jul 3, 2026 | Sep 30, 2026 | Nov 28, 2026 | Nov 3, 2026 |
| Releases, 12 months | 14 | 6 | 4 | 5 |
| Weeks with commits | 1 / 26 | 13 / 26 | 19 / 26 | 11 / 26 |
| Recent contributors | 8 | 4 | 36 | 7 |
| First release | Aug 2021 | Sep 2018 | Feb 2021 | Jun 2011 |
| Python versions | 3.9 – 3.14 | 3.10 – 3.15 | 3.10 – 3.15 | 3.10 – 3.15 |
| License | Apache-2.0 | Apache-2.0 | BSD-3-Clause | BSD-3-Clause AND TCL |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.