Course Outline
Introduction
- Comparison: FastAPI versus Django and Flask
- Key features and benefits of the FastAPI framework
Initial Setup
- Installation procedures for FastAPI
- Structuring schemas via OpenAPI
Managing Path and Query Parameters
- Specifying types for path parameters
- Data parsing and validation techniques
- Defining mandatory versus optional parameters
- Type conversion for query parameters
- Handling multiple path and query arguments
Request Bodies with Pydantic Models
- Constructing data models
- Integrating path, query, and body parameters
- Setting up validation rules and metadata
- Utilizing deeply nested model structures
- Defining sample data
- Response structures and auxiliary models
Form and File Handling
- Utilizing form fields as an alternative to JSON
- Defining file input parameters
- Managing combined file and form inputs
Error Management
- Implementing HTTPException
- Incorporating custom headers
- Registering custom exception handlers
- Modifying default exception behavior
Database Integration
- ORM concepts and project file architecture
- Developing SQLAlchemy components
- Building database models
- Creating corresponding Pydantic models
- Executing CRUD operations
- Setting up tables, dependencies, and path operations
- Code review and file verification
- Database interaction patterns
Security and Authentication
- Implementing Oauth2 and OpenID Connect
- Configuring multiple security schemes via OpenAPI
- Leveraging FastAPI’s security utilities
Deployment Strategies
- Core deployment concepts, phases, and toolsets
- Managing applications with Gunicorn and Uvicorn
- Utilizing container platforms such as Docker and Kubernetes
Troubleshooting
Conclusion and Future Directions
Requirements
- Foundational knowledge of API principles
- Proficiency 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)