Python Data Classes: A Friendly, Practical Guide for Modern Developers
If you’ve been writing Python for a while, you’ve probably felt the pain of creating classes that exist purely to hold data. You write an __init__, then a __repr__, then maybe an __eq__, and before long your “simple” class is 20 lines of boilerplate.