Data Class Serialization The Right Way
summary
Covers how to serialize and persist Python data classes, comparing libraries like pickle, jsonpickle, PyYAML and marshmallow, and showing why Pydantic provides a more precise approach. Explains serialization mechanics in dynamic languages, demonstrates the specific issue of deserializing subclasses, and walks through progressively improved solutions using Pydantic to handle complex data structures.
AI-written summary · about
related talks
26mEverything you need to know but were afraid to ask about Data Classes
32mEasier Classes: Python Classes Without All the Cruft
45mDataclasses: The code generator to end all code generators
36mDeserializing Python objects in Go with GoPickle
26mIntro to Pydantic, run-time type checking for your dataclasses
47mA Deep-Dive Into Python Classes
24mSerialization More than pickling
21mLet JSON Schema and Pydantic write your data models
