SQLModel is a library that lets you interact with databases through Python code with Python objects and type annotations instead of writing direct SQL queries. Created by the same author of the extremely popular framework FastAPI, it aims to make interacting with SQL DBs in Python easier and elegant, with data validation and IDE support,… Continue reading From SQL to SQLModel: A Cleaner Way to Work with Databases in Python
From SQL to SQLModel: A Cleaner Way to Work with Databases in Python
By Ahmed Lemine on 11 July 2025
From Backend to Frontend: Connecting FastAPI and Streamlit
By Zach Merrill on 29 April 2025
In my previous Pybites article, I showed how I built and deployed a book tracking API using FastAPI, Docker, and Fly.io. That project taught me a lot about backend development, containers, and deploying modern APIs. But a backend alone isn’t enough—users need an interface. And FastAPI’s Swagger UI, while useful for testing, just isn’t user-friendly… Continue reading From Backend to Frontend: Connecting FastAPI and Streamlit
Try an AI Speed Run For Your Next Side Project
By feoh on 31 March 2025
The Problem I have for as long as I can remember had a bit of a problem with analysis paralysis and tunnel vision. If I’m working on a problem and get stuck, I have a tendency to just sit there paging through code trying to understand where to go next. It’s a very unproductive habit… Continue reading Try an AI Speed Run For Your Next Side Project
Case Study: Developing and Testing Python Packages with uv
By Michael Aydinbas on 24 March 2025
Structuring Python projects properly, especially when developing packages, can often be confusing. Many developers struggle with common questions: To help clarify these common challenges, I’ll show how I typically set up Python projects and organise package structures using the Python package and environment manager, uv. The challenge A typical and recurring problem in Python is… Continue reading Case Study: Developing and Testing Python Packages with uv
Optimizing Python: Understanding Generator Mechanics, Expressions, and Efficiency
By Josh Engroff on 20 March 2025
Python generators provide an elegant mechanism for handling iteration, particularly for large datasets where traditional approaches may be memory-intensive. Unlike standard functions that compute and return all values at once, generators produce values on demand through the yield statement, enabling efficient memory usage and creating new possibilities for data processing workflows. Generator Function Mechanics At… Continue reading Optimizing Python: Understanding Generator Mechanics, Expressions, and Efficiency
FastAPI Deployment Made Easy with Docker and Fly.io
By Zach Merrill on 18 March 2025
For the PDM program I worked on a FastAPI project to track books using the Google Book API and also provide AI powered recommendations using Marvin AI. As the project came closer to deployment, I knew that I wanted to try out containerization for a reliable and repeatable way to deploy. I chose Docker due… Continue reading FastAPI Deployment Made Easy with Docker and Fly.io
NLP Made Easy: How We Prioritize Exercise Improvements with a Few Lines of Code
By Bob Belderbos on 20 February 2025
We highly appreciate user feedback for continuous improvement. With hundreds of Bite exercises and thousands of reviews, it’s easy to get overwhelmed by the data. 😱 How do you uncover insights from this sea of feedback? Use code! 😎 Enter TextBlob, a Python library that abstracts away the complexities of Natural Language Processing (NLP). This… Continue reading NLP Made Easy: How We Prioritize Exercise Improvements with a Few Lines of Code
The Mutable Trap: Avoiding Unintended Side Effects in Python
By Craig Richards on 3 February 2025
Ever had a Python function behave strangely, remembering values between calls when it shouldn’t? You’re not alone! This is one of Python’s sneakiest pitfalls—mutable default parameters. Recently someone asked for help in our Pybites Circle Community with a Bite exercise that seemed to be behaving unexpectedly. It turned out that this was a result of modifying a mutable parameter… Continue reading The Mutable Trap: Avoiding Unintended Side Effects in Python
Bridging the Skills Gap Across Africa with Pybites
By Julian Sequeira on 29 January 2025
When Bob and I first started Pybites, there was no way I could have imagined it’d grow to what it is today. Launching our first products was a massive moment for us both, not just because these were ways to sustain the business, but because we were actually HELPING people. People were coming to us… Continue reading Bridging the Skills Gap Across Africa with Pybites
Create Project-Less Python Utilities with uv and Inline Script Metadata
By Bob Belderbos on 17 January 2025
The other day I wanted to demo the Google Books API (we use for Pybites Books) to somebody so I started to write some code on the fly to call its endpoints using httpx. Then I thought it would be nice to turn it into a small script to search for books and view details… Continue reading Create Project-Less Python Utilities with uv and Inline Script Metadata
