Course Outline
Introduction
- Comparing FastAPI with Django and Flask
- Reviewing the key features and benefits of FastAPI
Initial Setup
- Installation procedures for FastAPI
- Schema definition utilizing OpenAPI
Path and Query Parameters
- Specifying types for path parameters
- Processing and validating incoming data
- Distinguishing between required and optional parameters
- Conversion of query parameter types
- Managing multiple path and query parameters
Request Bodies and Pydantic Models
- Construction of data models
- Integration of path, query, and body parameters
- Specification of validations and metadata
- Application of deeply nested models
- Definition of sample data
- Response structures and additional models
Forms and File Handling
- Utilizing form fields as an alternative to JSON
- Creation of file parameters
- Combination of file and form parameters
Error Management
- Implementation of HTTPException
- Inclusion of custom headers
- Installation of custom exception handlers
- Modification of default exception handlers
Database Integration
- Object-Relational Mappers (ORMs) and project structure
- Construction of SQLAlchemy components
- Design of database models
- Creation of corresponding Pydantic models
- Execution of CRUD operations
- Definition of tables, dependencies, and path operations
- Code review and verification
- Interaction patterns with the database
Security and Authentication
- Implementation of OAuth2 and OpenID Connect
- Configuration of multiple security schemes via OpenAPI
- Leveraging FastAPI utility functions
Deployment Strategies
- Core deployment concepts, phases, and tooling
- Integration with Gunicorn and Uvicorn
- Utilization of container platforms such as Docker and Kubernetes
Troubleshooting
Conclusion and Future Directions
Requirements
- Familiarity with fundamental API concepts
- Practical experience with 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)