NotNotMike@programming.dev to Python@programming.dev · 3 months 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 · 3 months agomessage-square6fedilink
minus-squaresouperk@reddthat.comlinkfedilinkarrow-up11·3 months 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·3 months 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