NotNotMike@programming.dev to Python@programming.dev · 8 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 · 8 days agomessage-square6fedilink
minus-squaresouperk@reddthat.comlinkfedilinkarrow-up11·8 days agoDepends on what you are trying to accomplish, pydantic is great for encoding/decoding If you don’t need that go with dataclasses
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up3·8 days agoI was going to comment this too
Depends on what you are trying to accomplish, pydantic is great for encoding/decoding
If you don’t need that go with dataclasses
I was going to comment this too