| 📅 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.
| ⭐ Related Post |
Faster Polars Queries with Programmatic Expressions
Problem:
When you want to use for loops to apply similar transformations, each Polars with_columns() call processes sequentially.
This prevents the optimizer from seeing the full computation plan.
Solution:
Instead, generate all Polars expressions programmatically before applying them together.
This enables Polars to:
- See the complete computation plan upfront
- Optimize across all expressions simultaneously
- Parallelize operations across CPU cores
| ☕️ 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


