Migrating an application on FastAPI from Pydantic V1 to V2
02-03-2026 - Andrés Cruz
Is your FastAPI project failing when migrating to Pydantic V2? Fix the 'orm_mode' error and use 'from_attributes' with ConfigDict. Practical guide and quick examples.
Authentication through Tokens in FastAPI using SQLAlchemy
02-03-2026 - Andrés Cruz
We will see how to create a simple authentication system with FastAPI using SQLAlchemy together with a token system, generate tokens, remove them, verify expiration and much more.
Executing Code on Start or End using the Lifespan Event in FastAPI
26-02-2026 - Andrés Cruz
Optimize your API: Discover why you should use Lifespan in FastAPI instead of on_event events. A practical guide to managing your application's state and resources.
Clean Architecture in FastAPI: A Professional Refactoring Guide with Google Antigravity + Pattern Repository
16-02-2026 - Andrés Cruz
Discover how to use AI agents and Gemini Anti-Gravity to refactor projects. We apply Clean Code principles in FastAPI to decouple your business logic and the Repository Pattern.
We will create the first function in FastAPI for the API and learn the basics of FastAPI, start the server, create our controller and see the Hello World on the screen.
Learn how to generate sample data in FastAPI to enrich your documentation. Discover how to use `json_schema_extra` in models and `openapi_examples` in `Body`, `Path`, and `Query` to facilitate API testing.