NotNotMike@programming.dev to Python@programming.dev · 9 days agoOpinions: Dataclasses or Pydantic model base?message-squaremessage-square6fedilinkarrow-up113arrow-down11
arrow-up112arrow-down1message-squareOpinions: Dataclasses or Pydantic model base?NotNotMike@programming.dev to Python@programming.dev · 9 days agomessage-square6fedilink
minus-squareEndmaker@ani.sociallinkfedilinkEnglisharrow-up10·9 days agoKeep it simple, stupid. I’d use the built-in dataclass (or something even simpler) where possible. Only when I need more functionalities (e.g. validation) would I switch to using Pydantic model.
Keep it simple, stupid.
I’d use the built-in dataclass (or something even simpler) where possible. Only when I need more functionalities (e.g. validation) would I switch to using Pydantic model.