Centralizing Your FastAPI Configuration Settings with Pydantic Settings
June 15, 2025
How to Organize and Load FastAPI Configuration Settings from a .env File Using Pydantic Settings
Learn how to centralize your FastAPI configuration using Pydantic Settings and a .env file. This post covers setup, usage, and best practices for managing environment variables and secrets in a maintainable way.
Read More...
6 Essential FastAPI Middlewares for Production-Ready Apps
February 4, 2025
A guide to the 6 key middlewares for building secure, performant, and resilient FastAPI applications.
Learn how to build a production-ready FastAPI applications by implementing 6 essential middlewares. This guide covers security headers, CORS, trusted hosts, Gzip compression, process time tracking, and custom exception handling, including why their order is critical.
Read More...
Have a project in mind? Send me an email at hello@davidmuraya.com and let's bring your ideas to life. I am always available for exciting discussions.