Python dataclasses
Shares rank 7 of 14 Python libraries by recommenders
People recommend Python dataclasses for declaring a set of properties that are readable, syntactically nice, and work with static type checking.
People recommend Python dataclasses for declaring a set of properties that are readable, syntactically nice, and work with static type checking.
7 people gave an opinion
- recommend it
- 7
- criticize it
- 0
- approval share
- 100%
Recommended in 3 of 13 months
- November 2025: recommended
- December 2025: recommended
- January 2026: not recommended
- February 2026: not recommended
- March 2026: recommended
- April 2026: not recommended
- May 2026: not recommended
- June 2026: not recommended
- July 2026: not recommended
- August 2026: not recommended
- September 2026: not recommended
- October 2026: not recommended
- November 2026: not recommended (month in progress)
Why it doesn’t carry the badge
- 7 people recommend itNeeds 10 or more, not met.
- Nobody criticizes itNeeds 2 to 1 or better, met.
- Recommended in 3 of 13 monthsNeeds 4 or more, not met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Readable, nice syntax for declared properties
“Having a declared set of properties is really useful, and it doesn't hurt either that they're syntactically nicer to use.”
Comment from 11 Dec 2025 in “A “frozen” dictionary for Python” “I find the data classes example extremely readable.”
Comment from 7 Nov 2025 in “Ruby already solved my problem”
Other Python libraries people recommend
The four most recommended other Python libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
See all 14 Python libraries, rankedWhat people said
6 of the 7 comments that mention it, newest first. Each links to the original comment.
“you'd also get static type checking and they are faster”
“Having a declared set of properties is really useful, and it doesn't hurt either that they're syntactically nicer to use.”
“it's quite likely you're better off with dataclasses or namedtuples anyway”
“there's @dataclass in 2025”
“use Python dataclasses that serialize to YAML”
“I find the data classes example extremely readable.”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.