A utility class for creating instances of dataclasses from plain data (dicts, lists, etc.). Current version 2.16, released monthly or on demand. Supports parsing, validation, and serialization of nested dataclasses.
pip install dataclass-factoryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: load a dataclass from a dict.
Create a new Factory per set of related dataclasses or call factory.clear() to reset caches.
Use parser.Parser with aliases or rename dataclass fields to match input keys.
Use `from dataclass_factory import Factory` and rely on default schema generation.
Upgrade to >=2.0 or use factory.parse() in older versions.
Ensure your dataclass fields match the input keys exactly. Use field(init=False) for computed fields.
No dependency data recorded yet.