The Three of Wands
  • Home

Python is two languages now, and that's actually great

cattrs I: un/structuring speed

Python is two languages now, and that's actually great

a month ago 4 min read python
Everyone doing Python nowadays is aware Python supports optional type hints, and has for some time now. This has created a small schism in the community, with some people being completely uninterested in
Read Now Read Later
Tin
By: Tin

Wall vs CPU time, or the cost of asyncio Tasks

7 months ago 3 min read pythonasyncio
Performing I/O concurrently is one of asyncio's superpowers (if not its main superpower). This is accomplished, directly or indirectly (through helpers like asyncio.gather), by the creation and use of asyncio tasks.
Read Now Read Later
Tin
By: Tin

cattrs I: un/structuring speed

a year ago 6 min read cattrspython
Over the years, I've put a lot of effort into making cattrs fast. Let's take a look at how the cattrs structuring code evolved during this time.
Read Now Read Later
Tin
By: Tin

Why I use attrs instead of pydantic

2 years ago 11 min read attrscattrspythonpydantic
This post is an account of why I prefer using the attrs library over Pydantic. I'm writing it since I am often asked this question and I want to have something concrete to link to.
Read Now Read Later
Tin
By: Tin

On structured and unstructured data, or the case for cattrs

2 years ago 5 min read pythonattrscattrs
If you've ever gone through the Mypy docs, you might have seen the section on TypedDict. The section goes on to introduce the feature by stating: Python programs often use dictionaries with string
Read Now Read Later
Tin
By: Tin
Page 1 of 3
Older Posts
Powered by Ghost
The Three of Wands