Organising SQLAlchemy Base and Models in FastAPI Projects

Introduction When working with FastAPI and SQLAlchemy, you may encounter an issue where your tables are not created in the database even though your code seems to be correctly set up. A common reason for this is having multiple instances of declarative_base instead of a single shared instance. In this blog post, we'll walk you … Continue reading Organising SQLAlchemy Base and Models in FastAPI Projects

Setting Up a Python Programming Environment

Want to learn how to setup a programming environment for Python using open source tools? Then read on! Over the last 20 years or so I have drifted in and out of different Python programming fads. In hindsight, it is clear there is no "default" setup. Folks stumble accidentally into different configurations, post about it, … Continue reading Setting Up a Python Programming Environment

Running Scripts at Startup

systemd_and_systemctl_as_a_happy_cartoon

And other Linux delights. Often there is a need to configure processes to start on startup and to restart on failure. On Linux systems this process is controlled via the systemd init system and system manager. Now, as with most things Linux, there are a lot of sources of information out there. Several of them … Continue reading Running Scripts at Startup