Python: from SQL to ORM (SQLModel)

I had to update a small Python script that I wrote a long time ago, and this was the occasion to try SQLModel.