dataclass-wizard
Marshal dataclasses to/from JSON. Use field properties with initial values. Construct a dataclass schema with JSON input.
Marshal dataclasses to/from JSON. Use field properties with initial values. Construct a dataclass schema with JSON input.
To install this package, run one of the following:
The dataclass-wizard library provides a set of simple, yet
elegant wizarding tools for interacting with the Python
dataclasses module in Python 3.9+.
The primary use is as a fast serialization framework that enables dataclass instances to be converted to/from JSON; this works well in particular with a nested dataclass model.
The dataclass-wizard is pure Python code that relies entirely on
stdlib, with the only added dependency being
typing-extensions https://pypi.org/project/typing-extensions/
for Python 3.9 and below.
Summary
Marshal dataclasses to/from JSON. Use field properties with initial values. Construct a dataclass schema with JSON input.
Last Updated
Dec 20, 2025 at 18:53
License
Apache-2.0
Total Downloads
66.6K
Supported Platforms
GitHub Repository
https://github.com/rnag/dataclass-wizardDocumentation
https://dataclass-wizard.readthedocs.io/