Skip to content
New this month 24 fresh C++, C#, F#, JavaScript, TypeScript and Lua courses just landed. Browse new releases Use code WELCOME10 for 10% off your first order · 14-day refund
Web Development Intermediate New

FastAPI in Practice: Typed Python Web Services

Ship a typed, validated and documented Python API with async endpoints and real tests.

Rated 4.5 out of 5 from 2 reviews 14 students

SN Created by Sofia Navarro

  • Last updated August 2026
  • English
  • 4h 56m of material
  • 37 lessons

What you will learn

8 concrete outcomes

Every bullet below is something you will have built, shipped or be able to explain by the time you finish the last lesson.

  • Design Pydantic v2 schemas that separate input, storage and output models cleanly
  • Use FastAPI dependency injection for sessions, authentication and configuration
  • Write async endpoints backed by SQLAlchemy 2.0 and an async PostgreSQL driver
  • Implement JWT authentication with scopes and route-level authorisation
  • Return consistent error payloads and keep the generated OpenAPI schema accurate
  • Add pagination, filtering and sorting that remain documented and testable
  • Test endpoints with pytest and httpx against a containerised database
  • Deploy with Uvicorn workers in Docker, including health checks and timeouts

Course curriculum

6 modules · 37 lessons · 4h 56m of material

8 lessons running 1h 02m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

6 lessons running 48m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

8 lessons running 1h 04m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

6 lessons running 46m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

5 lessons running 38m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

4 lessons running 38m in total. Each lesson ships with the finished source files and a short written recap, so you can follow along in your own editor and skim the module again later.

Lesson-by-lesson titles, code downloads and exercises live inside the course library you get access to straight after checkout.

6 modules · 37 lessons

4h 56m total length

Requirements

Short list, and deliberately so. If you meet these you can start today.

  • Intermediate Python including type hints and async basics
  • Familiarity with HTTP, JSON and SQL fundamentals
  • Python 3.11 or newer and a container runtime for the database

About this course

FastAPI takes Python type hints and turns them into request validation, response serialisation and OpenAPI documentation with almost no extra code. That leverage is the reason to use it, and this course is built around getting the full benefit rather than treating it as a lighter Flask.

You build a service end to end. Pydantic v2 models define request and response schemas, with validators, computed fields and strict separation between the model you accept, the model you store and the model you return. Dependency injection handles database sessions, authentication and per-request configuration. Async endpoints talk to PostgreSQL through SQLAlchemy 2.0 with an async engine, and background work moves to a task queue rather than blocking the response.

The production modules cover JWT authentication with scopes, pagination and filtering that stay documented, error handling that returns consistent problem payloads, structured logging with correlation identifiers, testing with pytest and httpx against a containerised database, and deployment behind Uvicorn workers in a Docker image with sensible timeouts and health checks.

Frequently asked questions

Still unsure about something? Write to misteryjj100@gmail.com and a human answers, usually the same working day.

No. FastAPI is taught from its own foundations, and prior framework habits occasionally get in the way rather than helping.

Only in a migration note. All examples use Pydantic v2, whose validation core and API differ enough that mixing them causes confusion.

Yes for following along, and the repository includes a SQLite configuration. The async driver differences are documented in the persistence module.

Checkout is handled on our provider's secure payment page. The moment your payment clears we email your personal access link and access code to the address you used at checkout, and the same link appears in your account library. There is nothing to install and nothing to wait for.

Email misteryjj100@gmail.com within 14 days of your purchase, quote your order number, and we refund the full amount to your original payment method. No form to fill in and no questions about how much of the course you watched.

What students say

Reviews are written by people who bought this course. We publish the critical ones too.

4.5

Rated 4.5 out of 5

Course rating · 2 reviews

Rating distribution

  • 5 stars 50%
  • 4 stars 50%
  • 3 stars 0%
  • 2 stars 0%
  • 1 star 0%
  • NK

    Nadine Kessler

    Python developer

    Mar 2026
    Rated 5.0 out of 5

    Async SQLAlchemy done properly

    This is the first course I have found that treats the session lifecycle as a real problem instead of dropping a global in and moving on. Dependency-scoped sessions with cleanup that actually runs, explained slowly enough to follow.
  • EO

    Emeka Obi

    Backend engineer

    Nov 2025
    Rated 4.0 out of 5

    Deployment chapter is generic

    Pydantic v2, the dependency system and the testing material are all first rate. Then deployment is a standard container-behind-a-reverse-proxy walkthrough of the sort you could find in a hundred blog posts, and it is the shortest chapter in the course.

Your instructor

SN

Sofia Navarro

Python and data engineer

  • 231 students taught
  • 11 courses published
  • 4.5 instructor rating
  • Python
  • SQL
  • PostgreSQL
  • Data engineering

Sofia builds the pipelines that keep analytics teams honest, mostly Python on top of PostgreSQL under uncomfortable load. She teaches schema design, indexing and query planning against anonymised production datasets rather than toy tables, then wires the same data into pandas so the SQL and the Python halves stop being separate skills. Expect to spend real time reading execution plans and rather less time reading slides. She consults on migrations for teams that cannot afford downtime.

$29 USD

One-time payment · lifetime access

The WisdomCharms dispatch

One useful email a week. No fluff, no spam.

New course releases, discount codes before anyone else, and a short, practical breakdown of one technique — a prompt pattern, a C++ idiom, a TypeScript trick — that you can use the same day.

  • Subscriber-only launch pricing
  • Unsubscribe in one click
  • We never sell your address

By subscribing you agree to our Privacy Policy. Questions? Write to misteryjj100@gmail.com.