NotNotMike@programming.dev to Python@programming.dev · 13 days agoOpinions: Dataclasses or Pydantic model base?message-squaremessage-square6linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1message-squareOpinions: Dataclasses or Pydantic model base?NotNotMike@programming.dev to Python@programming.dev · 13 days agomessage-square6linkfedilink
minus-squaresouperk@reddthat.comlinkfedilinkarrow-up0·13 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-up0·13 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