Python Course

Build production APIs with Python & FastAPI

A hands-on backend path — modern Python, FastAPI's dependency injection system, REST APIs, SQLAlchemy, authentication, testing and async concurrency — ending with a capstone service you containerize and deploy yourself.

15 Weeks Beginner → Job-Ready Self-Paced Python 3.12 & FastAPI
15
Weeks of study
12
Core modules
1
Capstone project
0→1
No prior Python needed
Before You Start

Prerequisites & tooling

What you should already know

  • Basic programming in any language — variables, functions, loops
  • Comfortable with the command line and Git
  • No prior Python or web framework experience required
  • Python 3.12 and a code editor like VS Code installed

Stack you'll work with

The same tools teams use to ship real Python services in production.

Python 3.12 FastAPI Pydantic SQLAlchemy & Alembic PostgreSQL pytest Docker Redis Poetry
Syllabus

Your 15-week learning path

Twelve modules, from your first typed function to a tested, secured, observable service you deploy in a container.

01
WEEK 1

Python Foundations & Environment Setup

Refresh modern Python and get your backend toolchain running.

  • Type hints, dataclasses & the match statement
  • Python 3.12, virtual environments & Poetry
  • Running your first FastAPI application
Start this lesson
02
WEEK 2

FastAPI Core & Dependency Injection

Understand the system that powers every FastAPI application.

  • Path operations, path/query params & Pydantic models
  • Depends() & the dependency injection system
  • Auto-generated docs with Swagger UI & ReDoc
Start Week 2
03
WEEK 3

Building REST APIs

Design and build clean, well-validated HTTP APIs.

  • APIRouter, request/response models & status codes
  • Validation with Pydantic & custom validators
  • Centralized error handling with exception handlers
Start Week 3
04
WEEKS 4–5

Data Persistence with SQLAlchemy

Model your domain and talk to a real relational database.

  • Models, sessions & the SQLAlchemy 2.0 query API
  • Relationships, lazy loading & transactions
  • Schema migrations with Alembic
Start Week 4Start Week 5
05
WEEKS 6–7

Authentication & Security

Lock down your API with modern, stateless authentication.

  • Password hashing with passlib & OAuth2 password flow
  • JWT-based authentication & refresh tokens
  • Scoped permissions via dependency-based authorization
Start Week 6Start Week 7
06
WEEK 8

Testing FastAPI Applications

Build a layered test suite you can trust before every deploy.

  • Unit testing with pytest & fixtures
  • TestClient & dependency overrides
  • Real-database integration tests with Testcontainers
Start Week 8
07
WEEKS 9–10

Microservices & Messaging

Move from a single service to a small distributed system.

  • Service-to-service calls with httpx
  • Event-driven messaging with Celery & RabbitMQ
  • Resilience patterns: retries, timeouts & circuit breakers
Start Week 9Start Week 10
08
WEEK 11

Caching & Performance

Keep a growing service fast under real load.

  • Caching with Redis & cache invalidation strategies
  • Connection pooling & query performance
  • Background tasks with BackgroundTasks
Start Week 11
09
WEEK 12

Observability & Production Readiness

Understand what your service is doing once it's live.

  • Structured logging & health-check endpoints
  • Metrics with prometheus-client
  • Distributed tracing basics
Start Week 12
10
WEEK 13

Containerization & Deployment

Package and ship your service the way production teams do.

  • Multi-stage Docker images for a Python service
  • CI/CD pipelines for a FastAPI service
  • Deploying with Gunicorn + Uvicorn workers
Start Week 13
11
WEEK 14

Async Python & Concurrency

A deep dive into the async model FastAPI is built on.

  • asyncio: the event loop, coroutines & tasks
  • Async database drivers & when async def actually helps
  • When to reach for threads, processes, or Celery instead
Start Week 14
12
WEEK 15 · CAPSTONE

Capstone: Ship a Production FastAPI Service

Apply every module in one project — built, tested, secured and deployed by you.

  • Fully tested, secured, containerized service
  • Code review & deployment walkthrough
  • Portfolio-ready project you can show employers
Start Week 15

Ready to build with Python?

Start with Week 1 and work through a real backend engineering path — or browse the Spring Boot and DevOps & Cloud courses if you're building out a full backend or infrastructure skill set.