๐ Today’s Picks
Pydantic v2.12: Skip Computed Fields During Serialization
Problem
By default, Pydantic’s model_dump() serializes computed fields alongside the base fields used to derive them.
This duplicates data and increases API response sizes.
Solution
Pydantic v2.12 adds the exclude_computed_fields parameter to model_dump().
This lets you keep computed fields for internal use while excluding them from API responses.
โ๏ธ Weekly Finds
llm-council [LLM] – Query multiple LLMs in parallel, anonymize responses, and have them rank each other for better answers
skweak [ML] – Build NER models without labeled data using weak supervision for NLP tasks
wrapt [Python Utils] – Create transparent decorators, wrappers, and monkey patches in Python
Looking for a specific tool? Explore 70+ Python tools โ
Stay Current with CodeCut
Actionable Python tips, curated for busy data pros. Skim in under 2 minutes, three times a week.


