Course Outline
Introduction
- FastAPI compared to Django and Flask
- Overview of FastAPI's features and benefits
Getting Started
- Installing FastAPI
- Defining schemas using OpenAPI
Path and Query Parameters
- Declaring path parameter types
- Parsing and validating data
- Defining required and optional parameters
- Converting query parameter types
- Handling multiple path and query parameters
Declaring Request Bodies with Pydantic Models
- Creating data models
- Combining path, query, and body parameters
- Defining validations and metadata
- Working with deeply nested models
- Specifying example data
- Utilizing response and additional models
Defining Forms and Files
- Using form fields instead of JSON
- Creating file parameters
- Utilizing file and form parameters
Error Handling
- Using HTTPException
- Adding custom headers
- Installing custom exception handlers
- Overriding default exception handlers
Working with Databases
- ORMs and file structure
- Setting up SQLAlchemy components
- Creating database models
- Creating Pydantic models
- Executing CRUD operations
- Creating tables, dependencies, and path operations
- Reviewing and verifying files
- Interacting with the database
Security and Authentication
- Utilizing OAuth2 and OpenID Connect
- Defining multiple security schemes with OpenAPI
- Leveraging FastAPI utilities
Deployment
- Deployment concepts, stages, and tools
- Working with Gunicorn and Uvicorn
- Using container systems (Docker and Kubernetes)
Troubleshooting
Summary and Next Steps
Requirements
- Familiarity with API concepts
- Experience with Python programming
Target Audience
- Developers
Testimonials (4)
The trainer was very available to answer all te kind of question I did
Caterina - Stamtech
Course - Developing APIs with Python and FastAPI
We were able to quickly get hands on into code, which helped reinforce concepts learned in lecture slides
Keith - Procter & Gamble Polska Sp. z o.o.
Course - Developing APIs with Python and FastAPI
The structured way of the e2e traing. Exercises allow touch the code to prepare some basics api also lectures touch details to which we need pay special attenstion during developig the api
Piotr - Procter & Gamble Polska Sp. z o.o.
Course - Developing APIs with Python and FastAPI
Very good preparation and expertise of a trainer, perfect communication in English. The course was practical (exercises + sharing examples of use cases)