Mathew K Analytics

FastAPI deep dive

A free 18-lesson course. Every lesson has a video walkthrough and a Jupyter notebook you can download or open in Google Colab. Tools covered: FastAPI, Pydantic, datetime, SQLAlchemy, asyncio, pytest.

About this course

FastAPI deep dive is a free intermediate course with 18 video lessons (about 3 hours of video in total). It starts with “FastAPI Tutorial #1: Getting Started — Build Your First Python API” and finishes with “FastAPI Tutorial #18: Capstone — Production-Ready API”. Every lesson comes with the exact Jupyter notebook used in the video, so you can run every step yourself.

Along the way you'll use FastAPI, Pydantic, datetime, SQLAlchemy, asyncio and pytest.

It suits learners who already know basic Python (variables, lists, loops and functions) and want to apply it to real problems.

Course outline

All 18 lessons

FastAPI Tutorial #1: Getting Started — Build Your First Python API13 min
Lesson 1

FastAPI Tutorial #1: Getting Started — Build Your First Python API

📓 Notebook · FastAPI

FastAPI Tutorial #2: Path & Query Parameters Explained14 min
Lesson 2

FastAPI Tutorial #2: Path & Query Parameters Explained

📓 Notebook · FastAPI

FastAPI Tutorial #3: Request Bodies & Pydantic Models15 min
Lesson 3

FastAPI Tutorial #3: Request Bodies & Pydantic Models

📓 Notebook · FastAPI · Pydantic

FastAPI Tutorial #4: Response Models & HTTP Status Codes16 min
Lesson 4

FastAPI Tutorial #4: Response Models & HTTP Status Codes

📓 Notebook · FastAPI · Pydantic

FastAPI Tutorial #5: Data Validation with Pydantic17 min
Lesson 5

FastAPI Tutorial #5: Data Validation with Pydantic

📓 Notebook · FastAPI · Pydantic

FastAPI Tutorial #6: Path Operation Configuration & Better Docs17 min
Lesson 6

FastAPI Tutorial #6: Path Operation Configuration & Better Docs

📓 Notebook · FastAPI

FastAPI Tutorial #7: Dependency Injection with Depends()17 min
Lesson 7

FastAPI Tutorial #7: Dependency Injection with Depends()

📓 Notebook · FastAPI

FastAPI Tutorial #8: Class-Based & Sub-Dependencies17 min
Lesson 8

FastAPI Tutorial #8: Class-Based & Sub-Dependencies

📓 Notebook · FastAPI

FastAPI Tutorial #9: Organising Routes with APIRouter16 min
Lesson 9

FastAPI Tutorial #9: Organising Routes with APIRouter

📓 Notebook · FastAPI

FastAPI Tutorial #10: Middleware & CORS Setup17 min
Lesson 10

FastAPI Tutorial #10: Middleware & CORS Setup

📓 Notebook · FastAPI

FastAPI Tutorial #11: Error Handling & Custom Exceptions18 min
Lesson 11

FastAPI Tutorial #11: Error Handling & Custom Exceptions

📓 Notebook · FastAPI · Pydantic

FastAPI Tutorial #12: Authentication Basics with OAuth216 min
Lesson 12

FastAPI Tutorial #12: Authentication Basics with OAuth2

📓 Notebook · FastAPI

FastAPI Tutorial #13: JWT Authentication End to End16 min
Lesson 13

FastAPI Tutorial #13: JWT Authentication End to End

📓 Notebook · FastAPI · datetime

FastAPI Tutorial #14: Databases with SQLAlchemy
Lesson 14

FastAPI Tutorial #14: Databases with SQLAlchemy

📓 Notebook · SQLAlchemy · FastAPI · Pydantic

FastAPI Tutorial #15: Async & Background Tasks
Lesson 15

FastAPI Tutorial #15: Async & Background Tasks

📓 Notebook · FastAPI · asyncio

FastAPI Tutorial #16: Real-Time WebSockets
Lesson 16

FastAPI Tutorial #16: Real-Time WebSockets

📓 Notebook · FastAPI

FastAPI Tutorial #17: Testing FastAPI Apps with pytest
Lesson 17

FastAPI Tutorial #17: Testing FastAPI Apps with pytest

📓 Notebook · FastAPI · pytest · Pydantic

FastAPI Tutorial #18: Capstone — Production-Ready API
Lesson 18

FastAPI Tutorial #18: Capstone — Production-Ready API

📓 Notebook · FastAPI · SQLAlchemy · Pydantic

Frequently asked questions

Is the FastAPI deep dive course free?

Yes. All 18 videos, notebooks are free, with no sign-up.

Do I need to install anything?

No. You can open each notebook in Google Colab in your browser, or download it and run it in Jupyter or VS Code with Anaconda installed.

How long does the FastAPI deep dive course take?

The videos add up to about 3 hours. Most learners take one to two lessons a day, so plan on 3 to 4 weeks if you code along.

What level is it?

Intermediate. It suits learners who already know basic Python (variables, lists, loops and functions) and want to apply it to real problems.