In this masterclass, you will build a production-grade Python REST API that connects cleanly and reliably to a database—without turning persistence into a tangled cross-cutting concern. Starting from a minimal API, we will design a persistence layer using the Repository Pattern, then implement and compare three concrete approaches:
Along the way, we will focus on engineering decisions that matter in real systems: data validation, idempotency, incremental updates, and integration testing in a containerized environment. You will leave with a working reference implementation and many aspects worth considering in your next project.
By the end of the masterclass, you will be able to:
Kristian is a freelance Python trainer who wrote his first lines of Python in the year 11111001111. After a career writing software for life science research, he has been teaching Python, Data Analysis and Machine Learning throughout Europe since 2011. More recently, he has built data pipelines for the real estate and medical sector.
Kristian has translated 5 Python books and written 2 more himself, in addition to numerous teaching guides. Kristian has collected 364 stars on Advent of Code. His favorite Python module is 're'. Kristian believes everybody can learn programming.