Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
FastAPI Masterclass
Hot & New
New
Rating: 4.9 out of 5(8 ratings)
177 students

FastAPI Masterclass

Build modern, high-performance APIs and server-side applications with Python + FastAPI. No backend experience required!
Created byBoris Paskhaver
Last updated 7/2026
English
English [Auto],

What you'll learn

  • Build and run FastAPI applications with endpoints that accept requests and return responses
  • Use SQLModel and SQLAlchemy to define domain models and map them to database tables
  • Use an object-relational mapper (ORM) to perform CRUD (create, read, update, delete) operations with a database
  • Utilize Pydantic to validate and control the shape of data entering and leaving an API
  • Build an authentication and authorization system from scratch with password hashing, JWTs, roles, and scopes

Course content

13 sections161 lectures25h 28m total length
  • Welcome to the Course12:42

    Welcome to FastAPI Masterclass! In this lesson, we introduce the FastAPI framework built on top of the Python programming language. We:

    • explain what an API is

    • learn the history of FastAPI

    • compare FastAPI with its competitors Flask and Django

    • introduce technical prerequisites

    • discuss technical setup and our next steps

  • FAQ + Technical Troubleshooting4:05

    This lesson offers answers to common questions you might have around installing Python and uv, downloading course materials, editor setup, technical support and more.

  • (macOS) Install uv, a Python package and project manager4:58

    In this lesson, we setup the uv command-line tool for managing Python versions/projects. This lesson is exclusively for macOS users.

  • (Windows) Install uv, a Python package and project manager5:03

    In this lesson, we setup the uv command-line tool for managing Python versions/projects. This lesson is exclusively for Windows users.

  • Download Course Materials and use uv sync to Download Project Dependencies5:11

    In this lesson, we download the FastAPI Masterclass course repository from GitHub. We also utilize the uv sync command within the rent-a-room project to install Python and all project libraries/dependencies (including FastAPI). As you progress through the course, make sure to run uv sync in every project directory before you start that project.

  • Installing Additional Dependencies6:56

    In this lesson, we introduce and install the JSONVue Chrome extension to format JSON. JSON (JavaScript Object Notation) is the data transfer language of the web. We also show the process for installing the course's recommended VSCode editor extensions which are attached to each project.

  • The Ruff Formatter4:26

    In this lesson, we show how the Ruff formatter can style and format our Python code. Ruff is made by the same team as the uv Python manager.  I've setup the course projects to run Ruff automatically when you save within VSCode.

  • Our Rent a Room Application2:40

    Introduce the Airbnb application that serves as inspiration for our first project, rent-a-room. We describe the value of the website and click around a few pages.

Requirements

  • Intermediate knowledge of Python (control flow, data types, functions/methods, classes, imports, etc)
  • Terminal experience
  • Text editor (we use Visual Studio Code in the course)

Description

Welcome to FastAPI Masterclass, a comprehensive introduction to backend development in Python with FastAPI.

FastAPI is a Python framework for building fast, modern server-side applications and APIs. It  has exploded in popularity in the last few years. Today, it has more than 100,000 stars on GitHub and more daily downloads than Django and Flask on PyPi. It powers applications in companies like Netflix, Microsoft, Uber, OpenAI, and Amazon.

One of FastAPI’s greatest strengths is its flexibility. Unlike larger frameworks that impose a specific structure, FastAPI gives developers the freedom to choose how their applications are organized. You can customize the folder structure, database, ORM, authentication system, validation rules, testing strategy, and architecture.

No previous backend development experience is required. This course follows a linear progression, beginning with the fundamentals and gradually advancing to topics such as authorization, authentication, testing, architecture, and more.

Topics covered:

  • Clients and servers

  • Routes and HTTP methods

  • Path parameters

  • Query parameters

  • Debugging with Visual Studio Code

  • Cookies and Headers

  • FastAPI Validator Functions (Path, Query, Cookie, Header, and More)

  • Dependencies (Functions, Classes, and Other Callables) and Dependency Injection (DI)

  • Object-Relational Mappers (ORM)

  • Database Queries

  • Database Migrations

  • Codebase Structure

  • Password hashing

  • JSON Web Tokens (JWTs)

  • Authentication

  • Authorization

  • and more!

In addition to FastAPI, the course covers many helpful libraries and tools from the modern Python ecosystem including:

  • uv

  • Pydantic

  • SQLModel

  • SQLAlchemy

  • SQLite 3

  • Alembic

The first part of the course offers a step-by-step walkthrough of a rent-a-room project inspired by home-stay platforms such as Airbnb. We begin from scratch and gradually incorporate all the critical components of a modern FastAPI application.

After the main project, the course explores common backend topics in dedicated sections. These include database migrations, password hashing, JWT-based authentication, authorization, application architecture, and automated testing.

By the end of FastAPI Masterclass, you will not only understand the syntax and features of FastAPI but also understand the fundamental backend principles that apply across programming languages, libraries, or frameworks.

I'm excited to teach you everything I know about this powerful framework, and I look forward to seeing you in the course!

Who this course is for:

  • Intermediate Python developers who want to learn backend development from the ground up.
  • Django or Flask developers who want to expand their toolkit with a modern, high-performance API framework.