Day 22 of 30 Days of FastAPI - Database Isolation & Dependency Overrides
Learn how to use pytest fixtures and dependency overrides to create a test database that ensures your tests start with a clean slate every single time.
344 words
|
2 minutes
Cover Image of the Post
Day 21 of 30 Days of FastAPI - Testing Your API - Confidence Through Automation
Learn how to implement automated testing in FastAPI using pytest and TestClient to ensure code reliability and prevent regressions.
331 words
|
2 minutes
Cover Image of the Post
Day 20 of 30 Days of FastAPI - Static Files & Templates — Creating a UI for your API
Learn how to serve static files and render HTML templates with FastAPI.
236 words
|
1 minutes
Cover Image of the Post
Day 19 of 30 Days of FastAPI - Background Tasks — Stop Making Your Users Wait
Learn how to improve API performance by offloading long-running operations like email sending and image processing using FastAPI BackgroundTasks.
297 words
|
1 minutes
Cover Image of the Post
Day 18 of 30 Days of FastAPI - Identifying the Current User — From Tokens to Objects
Learn how to identify the current user in FastAPI by decoding JWT tokens and retrieving user objects from the database using dependencies.
304 words
|
2 minutes
Cover Image of the Post
Day 17 of 30 Days of FastAPI - JWTs and Password Hashing - The Security Deep Dive
Learn how to implement secure password hashing and JWT authentication in FastAPI using passlib and python-jose.
351 words
|
2 minutes
Cover Image of the Post
Day 16 of 30 Days of FastAPI - Introduction to Security & OAuth2
Learn the fundamentals of API security in FastAPI by implementing OAuth2 with Password Flow and leveraging built-in security dependencies.
232 words
|
1 minutes
Cover Image of the Post
Day 15 of 30 Days of FastAPI - Update and Delete — Managing the Data Lifecycle
Implementing Update and Delete operations using SQLAlchemy and Pydantic in FastAPI
303 words
|
2 minutes
Cover Image of the Post