The repository pattern is a design pattern that helps you separate business logic from data access code. It does so by providing a unified interface for interacting with different data sources, bringing the following advantages to your system: A practical example Let’s use Python and sqlmodel (PyPI) to demonstrate this pattern (code here): Note: In this implementation,… Continue reading What is the Repository Pattern and How to Use it in Python?
Articles on databases
My experience building a FastAPI + Streamlit app
By Chris Sato on 13 February 2023
I recently finished my time in the PDM program with Bob as my coach. This post focuses on how I made a back-end read-only database using FastAPI and a front-end using Streamlit along with the challenges that came with the whole project. Project Idea and initial planning This wasn’t my first attempt. I tried making… Continue reading My experience building a FastAPI + Streamlit app
Practical Django with Antonio Melé
By PyBites Team on 29 September 2022
Listen here: This week we have Antonio Melé on the show, CTO & co-founder at Nucoro and author of Django 4 by Example. We talk about: – His day to day at Nucoro. – Why he chose Django as a web framework and how he uses it at the company. – What inspired him to write a… Continue reading Practical Django with Antonio Melé