Course Outline
Introduction
- Comparative analysis: FastAPI, Django, and Flask
- Summary of FastAPI capabilities and strategic benefits for federal applications
Initialization and Setup
- Installation procedures for FastAPI
- Specification of schemas via OpenAPI standards
Path and Query Parameter Management
- Establishment of path parameter data types
- Data parsing and validation protocols
- Differentiation between mandatory and optional parameters
- Conversion of query parameter formats
- Management of combined path and query inputs
Request Body Definition with Pydantic Models
- Construction of data models
- Integration of path, query, and body parameters
- Configuration of validation rules and metadata
- Implementation of complex nested model structures
- Definition of sample input data for compliance testing
- Specification of response schemas and auxiliary models
Form Data and File Handling
- Utilization of form fields in lieu of JSON payloads
- Configuration of file upload parameters
- Synchronous handling of file and form inputs for government workflows
Error Management and Exception Handling
- Implementation of HTTPException protocols
- Addition of custom HTTP headers
- Registration of custom exception handlers
- Modification of default exception handling mechanisms
Database Integration
- Object-Relational Mapping (ORM) alignment and directory structure
- Construction of SQLAlchemy components
- Development of database entity models
- Creation of corresponding Pydantic data schemas
- Execution of Create, Read, Update, and Delete (CRUD) operations
- Configuration of table definitions, dependency injection, and path operations
- Verification of code integrity and file structure
- Direct interaction with database instances
Security and Authentication Frameworks
- Implementation of OAuth2 and OpenID Connect standards
- Configuration of multiple security schemes via OpenAPI documentation
- Utilization of FastAPI built-in security utilities
Deployment Strategies
- Overview of deployment phases, architectural concepts, and enabling tools
- Operational integration of Gunicorn and Uvicorn servers
- Application of containerization technologies (Docker and Kubernetes) for scalable government systems
Troubleshooting Common Issues
Summary and Future Development Pathways
Requirements
- Comprehensive knowledge of application programming interface (API) principles
- Practical proficiency in Python software development
Intended Audience
- Software engineering professionals
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)