← Back to live sessions
PY04Python

Production APIs with FastAPI

Build a typed inventory API with validation, error handling, OpenAPI docs, health checks, and production-minded boundaries.

Production project

Inventory Management API

An operations team needs a service that tracks products, stock changes, and low-stock risk without relying on spreadsheets.

Who this is for

  • •Python developers moving from scripts to backend services
  • •ML or AI engineers who need reliable service APIs

How this helps

  • •You can turn Python logic into a clean API service
  • •You can expose ML, automation, or business logic through typed endpoints

What you will learn

The capabilities, not just the keywords.

  • •Design resource-oriented FastAPI endpoints
  • •Use Pydantic models for request and response validation
  • •Create predictable error responses and API boundaries
  • •Expose OpenAPI documentation and health endpoints
  • •Structure a small service so it can grow beyond one file

Real production project

Inventory Management API

An operations team needs a service that tracks products, stock changes, and low-stock risk without relying on spreadsheets.

What we build

  • •Product and inventory endpoints
  • •Stock adjustment workflow
  • •Low-stock query
  • •Validation and structured errors
  • •Health endpoint

Stack

  • •Python
  • •FastAPI
  • •Pydantic
  • •Uvicorn

Production concerns

  • •Input validation
  • •API contracts
  • •error semantics
  • •configuration
  • •health checks
  • •future persistence boundaries

Finished deliverables

  • •Working API source code
  • •OpenAPI/Swagger contract
  • •project structure
  • •next-step production checklist

Prerequisites

Required

  • •Comfort with Python functions, modules, lists, and dictionaries

Helpful, but optional

  • •Basic HTTP or REST API familiarity

Before the session

Come ready to build.

  • •Install Python 3.11+
  • •Install VS Code or preferred IDE
  • •Have Git available
  • •Create a GitHub account if you want to publish the project

What to expect

15–25%Concept + problem framing
60–70%Implementation, design, and debugging
10–15%Production trade-offs + next actions

What you get

Something useful after the call ends.

  • •Starter and final code structure
  • •API design checklist
  • •session notes
  • •personalised next-step plan

Where to go next

Python → API Engineering → AI/ML Service Development

Every session can be booked independently. If you already know the prerequisite material, skip ahead.

Useful before this

No earlier session is mandatory.

Teaching proof

Review the evidence first.

See workshop delivery, technical projects, and teaching proof before booking.

Ready?

Request PY04: Production APIs with FastAPI

Share your current level and what you want to build. The session can be adapted without changing its core outcome.

Request this session

FAQ

Can I book only this session?

Yes. Every session is designed to work independently.

Can I bring my own project?

Yes, when it fits the session outcome. We can map the concepts onto your project instead of the default example.

What if I already know part of the topic?

We can move faster through familiar material and spend more time on implementation, failure modes, and production trade-offs.

Is the session recorded?

Recording is not promised by default. Confirm this before the session if you need it.

What should I install?

The preparation section above lists the default setup. You will receive any session-specific setup notes before the call.

Are API or cloud charges included?

No. Any third-party API or cloud usage is paid directly through your own account unless explicitly agreed otherwise.