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
Create Project-Less Python Utilities with uv and Inline Script Metadata
By Bob Belderbos on 17 January 2025
Creating a Fitness Tracker App with Python Reflex
By Bob Belderbos on 16 January 2025
In this post, I will build a simple fitness tracker app using Python Reflex. Reflex is a Python library that allows you to create reactive applications using a functional and declarative approach. We will use Reflex to create a simple fitness tracker app that allows you to log the amount of workouts completed per week.… Continue reading Creating a Fitness Tracker App with Python Reflex
A Practical Example of the Pipeline Pattern in Python
By Juan José Expósito González on 8 November 2024
What is this pattern about? The Pipeline design pattern (also known as Chain of Command pattern) is a flexible way to handle a sequence of actions, where each handler in the chain processes the input data and passes it to the next handler. This pattern is commonly used in scenarios involving data processing, web scraping,… Continue reading A Practical Example of the Pipeline Pattern in Python
How to convert a Python script into a web app, a product others can use
By Ahmed Lemine on 19 July 2024
So, you’re a Python developer or you just use Python to make your life easier by writing utility scripts to automate repetitive tasks and boost your productivity.Such Python scripts are usually local to your machine, run from the command line and require some Python skills to use including for instance setting up a virtual environment… Continue reading How to convert a Python script into a web app, a product others can use
Introducing eXact-RAG: the ultimate local Multimodal Rag
By Marco Franzon on 20 June 2024
Exact-RAG is a powerful multimodal model designed for Retrieval-Augmented Generation (RAG). It seamlessly integrates text, visual and audio information, allowing for enhanced content understanding and generation. In the rapidly evolving landscape of the Large language model (LLM), the quest for more efficient and versatile models continues unabated. One of the latest advancements in this realm… Continue reading Introducing eXact-RAG: the ultimate local Multimodal Rag
What is the Repository Pattern and How to Use it in Python?
By Bob Belderbos on 20 June 2024
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?
Learn Python From Scratch: We Extended Our Newbie Bite Exercises From 25 to 50 🐍 📈
By PyBites Team on 18 June 2024
We are excited to announce that we’ve extended our Newbie Bites from 25 to 50 Python exercises! 🎉 The importance of exercising when learning how to code 💡 We’re passionate about this new batch of exercises because they require active engagement, which is crucial for learning how to code. Passive methods like reading books or… Continue reading Learn Python From Scratch: We Extended Our Newbie Bite Exercises From 25 to 50 🐍 📈
Deploying a FastAPI App as an Azure Function: A Step-by-Step Guide
By Bob Belderbos on 17 June 2024
In this article I will show you how to deploy a FastAPI app as a function in Azure. Prerequisites are that you have an Azure account and have the Azure CLI installed (see here). Setup Azure First you need to login to your Azure account: It should show your subscriptions and you select the one… Continue reading Deploying a FastAPI App as an Azure Function: A Step-by-Step Guide
OpenStreetMap, Overpass API and Python
By Judith Vockenroth on 17 April 2024
OpenStreetMap (OSM) is known for being an open source project that allows people to browse the world map and to plan routes. However it is more than that. Among others it provides a read-only API that allows users to query for very diverse map data: Overpass API Data structure of OSM To understand the structure… Continue reading OpenStreetMap, Overpass API and Python
Adventures in Import-land, Part II
By Ashlynn Antrobus on 8 April 2024
“KeyError: ‘GOOGLE_APPLICATION_CREDENTIALS‘” It was way too early in the morning for this error. See if you can spot the problem. I hadn’t had my coffee before trying to debug the code I’d written the night before, so it will probably take you less time than it did me. app.py: file_handling.py: See the problem? This was… Continue reading Adventures in Import-land, Part II