Course Outline
Introduction
- Comparative analysis of FastAPI, Django, and Flask
- Key capabilities and operational benefits of FastAPI
Initial Setup
- Installation of FastAPI for government development environments
- Defining schemas using the OpenAPI standard
Path and Query Parameter Management
- Specifying path parameter data types
- Data parsing and validation procedures
- Configuration of mandatory and optional parameters
- Type conversion for query parameters
- Handling multiple path and query parameters
Request Body Definition via Pydantic Models
- Constructing structured data models
- Integration of path, query, and body parameters
- Specification of validation rules and metadata
- Application of deeply nested model structures
- Definition of sample data instances
- Response formatting and auxiliary model definitions
Form and File Handling
- Implementation of form field inputs in place of JSON
- Creation of file upload parameters
- Synchronized use of file and form parameters
Error Management
- Utilization of HTTPException for error responses
- Incorporation of custom response headers
- Installation of specialized exception handlers
- Modification of default exception handling protocols
Database Integration
- Object-Relational Mappers and project architecture
- Development of SQLAlchemy components
- Establishment of database models
- Creation of Pydantic data structures
- Execution of Create, Read, Update, and Delete (CRUD) operations
- Construction of tables, dependencies, and path operations
- Code review and file verification
- Database interaction protocols
Security and Authentication
- Implementation of Oauth2 and OpenID Connect standards
- Configuration of multiple security schemes via OpenAPI
- Application of FastAPI built-in security utilities
Deployment Strategies
- Deployment frameworks, lifecycle stages, and tooling
- Utilization of Gunicorn and Uvicorn server processes
- Containerization using Docker and orchestration via Kubernetes
Diagnostic Procedures
Summary and Subsequent Actions
Requirements
- Familiarity with core API design concepts
- Demonstrated proficiency in Python programming
Target Audience
- Software developers engaged in public sector projects
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)