Corey Schafer

Corey Schafer

Creator
0 followers

High-quality Python tutorials foundational for AI and data science

Python FastAPI Tutorial (Part 19): Deploy with Docker - Serverless Containers and Custom Domain
VideoApr 21, 2026

Python FastAPI Tutorial (Part 19): Deploy with Docker - Serverless Containers and Custom Domain

The video walks viewers through deploying a FastAPI application using Docker containers on Google Cloud Run, highlighting a shift from traditional VPS management to fully managed serverless infrastructure with automatic scaling, SSL, and pay‑as‑you‑go pricing. It also introduces Neon, a...

By Corey Schafer
Python FastAPI Tutorial (Part 18): Deploy to a VPS - Security, Nginx, SSL, and Custom Domain
VideoApr 19, 2026

Python FastAPI Tutorial (Part 18): Deploy to a VPS - Security, Nginx, SSL, and Custom Domain

The tutorial walks viewers through deploying a production‑ready FastAPI blog to a virtual private server. After adding a simple health‑check route that verifies database access, the instructor pushes the entire codebase to a public GitHub repository, emphasizing the importance of...

By Corey Schafer
Python FastAPI Tutorial (Part 17): Testing the API - Pytest, Fixtures, and Mocking External Services
VideoApr 17, 2026

Python FastAPI Tutorial (Part 17): Testing the API - Pytest, Fixtures, and Mocking External Services

The video walks viewers through adding a robust testing suite to a production‑grade FastAPI blog project. After completing authentication, PostgreSQL migrations, and AWS S3 image uploads, the instructor emphasizes the need for automated tests to catch regressions and enable safe...

By Corey Schafer
Python FastAPI Tutorial (Part 16): AWS S3 and Boto3 - Moving File Uploads to the Cloud
VideoApr 16, 2026

Python FastAPI Tutorial (Part 16): AWS S3 and Boto3 - Moving File Uploads to the Cloud

The video walks developers through upgrading a FastAPI blog app’s image handling from local disk storage to Amazon S3, emphasizing why container‑based deployments require durable, external object storage. It outlines the practical steps: installing the Boto3 SDK, creating an S3 bucket...

By Corey Schafer
Python FastAPI Tutorial (Part 15): PostgreSQL and Alembic - Database Migrations for Production
VideoApr 3, 2026

Python FastAPI Tutorial (Part 15): PostgreSQL and Alembic - Database Migrations for Production

The video walks developers through converting a FastAPI tutorial project from a development‑only SQLite database to a production‑ready PostgreSQL setup, and introduces Alembic for managing schema migrations. It explains why SQLite’s file‑based model and the use of create_all() are unsuitable...

By Corey Schafer