Course Outline
Introduction
- Comparing FastAPI with Django and Flask
- Overview of key FastAPI features and benefits
Getting Started
- Installation of FastAPI
- Defining schemas using OpenAPI
Path and Query Parameters
- Specifying path parameter types
- Data parsing and validation
- Defining required and optional parameters
- Conversion of query parameter types
- Handling multiple path and query parameters
Declaring Request Bodies with Pydantic Models
- Constructing data models
- Integrating path, query, and body parameters
- Specifying validations and metadata
- Utilizing deeply nested models
- Defining example data
- Response structures and additional models
Handling Forms and Files
- Employing form fields as an alternative to JSON
- Creating file parameters
- Using file and form parameters in conjunction
Error Handling
- Utilizing HTTPException
- Incorporating custom headers
- Installing custom exception handlers
- Overriding default exception handlers
Database Integration
- ORM concepts and file organization
- Constructing SQLAlchemy components
- Creating database models
- Developing Pydantic models
- Executing CRUD operations
- Establishing tables, dependencies, and path operations
- Code review and file verification
- Database interaction patterns
Security and Authentication
- Implementing Oauth2 and OpenID Connect
- Defining multiple security schemes via OpenAPI
- Leveraging FastAPI security utilities
Deployment
- Deployment strategies, stages, and tools
- Working with Gunicorn and Uvicorn
- Utilizing container systems (Docker and Kubernetes)
Troubleshooting
Conclusion and Future Steps
Requirements
- Familiarity with fundamental 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)