Interacting with SQL databases from Python code can often be challenging to write and comprehend.
With SQLModel, you can harness Pydantic-like classes that leverage Python type annotations to increase its readability.
Similar code without SQLModel.
Link to SQLModel.