Course Outline
Introduction
- Comparing FastAPI with Django and Flask
- Key features and benefits of FastAPI
Getting Started
- Setting up FastAPI
- Defining schemas with OpenAPI
Path and Query Parameters
- Specifying path parameter types
- Data parsing and validation techniques
- Distinguishing between required and optional parameters
- Type conversion for query parameters
- Managing multiple path and query parameters
Request Bodies with Pydantic Models
- Building data models
- Integrating path, query, and body parameters
- Setting validations and metadata
- Working with deeply nested structures
- Defining example data
- Handling responses and additional models
Forms and Files
- Utilizing form fields over JSON
- Creating file parameters
- Combining file and form inputs
Error Handling
- Implementing HTTPException
- Adding custom headers
- Registering custom exception handlers
- Overriding default exception behaviors
Database Integration
- Understanding ORMs and project structure
- Building SQLAlchemy components
- Defining database models
- Creating corresponding Pydantic models
- Executing CRUD operations
- Setting up tables, dependencies, and path operations
- Code review and file inspection
- Interacting with the database
Security and Authentication
- Implementing Oauth2 and OpenID connect
- Defining multiple security schemes via OpenAPI
- Leveraging FastAPI security utilities
Deployments
- Deployment strategies, stages, and tooling
- Using Gunicorn and Uvicorn
- Containerization with Docker and Kubernetes
Troubleshooting
Wrap-up and Future Steps
Requirements
- Familiarity with API concepts
- Practical experience in Python programming
Target Audience
- Software 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)