HomeBlog

Posts tagged with: #Pydantic

Reusable Model Fields in SQLModel with Mixins

September 20, 2025

Reusable Model Fields in SQLModel with Mixins

A Guide to Creating DRY Database Models with Timestamps and Base Models.

Stop repeating id and timestamp fields in your SQLModel models. Learn to use mixins and a base model to write cleaner, more maintainable code for your FastAPI application.

Read More...

Connecting FastAPI to a Database with SQLModel

August 26, 2025

Connecting FastAPI to a Database with SQLModel

A practical guide to building CRUD APIs with FastAPI and SQLModel.

Learn to connect FastAPI to SQL databases using SQLModel. This guide covers creating models, managing sessions, and building a complete CRUD API with practical examples.

Read More...

Centralizing Your FastAPI Configuration Settings with Pydantic Settings

June 15, 2025

Centralizing Your FastAPI Configuration Settings with Pydantic Settings

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...

Contact Me

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.

© 2025 David Muraya. All rights reserved.