← All slides

FastAPI for Beginners — Slides

20 lessons, 349 slides. Each lesson's text and code as one deck (the slides are in Japanese).

Version 1 (made 2026-11-06)

Payment is handled on Stripe's page. After buying, you can download from this page at any time.

Please log in to use a coupon code. You can also enter a promotion code on the payment page (Stripe).

Samples

Sample slide 1 Sample slide 2 Sample slide 3

What's included

  • slides.pdf — One slide per page. For checking or printing
  • png/ — 1920×1080 images, ready to drop into a video editor
  • index.html — Open in a browser to present. Press P for the presenter view (notes, next slide, elapsed time)

Each lesson has its own folder. The lesson text is kept as is, so what to say appears in the presenter notes.

How you may use them

  • Your own study
  • Classes, lectures and study groups you teach yourself
  • In-house training at your own company or organization
  • On screen in videos you record yourself for those classes or trainings
  • Editing the wording or reordering slides for those uses
  • Handing out the slide files themselves (PDF, PNG, HTML) to learners or anyone else
  • Selling the slides, or edited versions of them, or including them in paid materials
  • Posting them anywhere public (websites, social media, public videos on video sites, etc.)
  • Removing the 4peiron.dev credit and presenting them as your own work

4peiron.dev keeps the copyright. What you buy is the right to use the slides as described above. The same terms are in README.txt inside the ZIP.

Contents

1

環境構築と最初のエンドポイント

14 slides

2

パスパラメータと型変換

15 slides

3

クエリパラメータと Annotated

14 slides

4

Pydantic モデルでリクエストボディを受け取る

14 slides

5

レスポンスモデルとステータスコード

15 slides

6

async def と def の使い分け

30 slides

7

APIRouter でプロジェクトを分割する

14 slides

8

依存性注入(Depends)

14 slides

9

バリデーションを作り込む

15 slides

10

エラーハンドリングと例外ハンドラ

33 slides

11

SQLAlchemy 2.0 でデータベースに繋ぐ

16 slides

12

CRUD を完成させる(PUT と PATCH の違い)

17 slides

13

リレーションと N+1 問題

17 slides

14

検索・ページング・ソート

16 slides

15

フォームとファイルアップロード

16 slides

16

OAuth2 パスワードフローと JWT で認証する

17 slides

17

認可・CORS・ミドルウェア

16 slides

18

バックグラウンドタスクと lifespan、ロギング

18 slides

19

テストを書く(dependency_overrides)

19 slides

20

設定管理・Alembic・Docker で本番に出す

19 slides

The lesson text is on the course page. Slides are sold separately from the membership; members also need to buy them. Refunds follow the Terms of Service.