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 SQLAlchemy
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
PyBites Twitter Digest – Issue 26, 2018
By PyBites Team on 5 August 2018
Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.
Building a Simple Birthday App with Flask-SQLAlchemy
By Bob Belderbos on 11 May 2017
In this article I teach you how to get started with Flask-SQLAlchemy. I will set up a model, create the DB, retrieve birthdays from FB and import them into the DB. Lastly I will query the birthdays by date range.