Course Outline
Introduction
- Comparison of FastAPI, Django, and Flask for government applications
- Overview of FastAPI features and advantages for government use cases
Getting Started
- Installing FastAPI in a government environment
- Defining a schema using OpenAPI standards for government
Path and Query Parameters
- Declaring path parameter types for enhanced data integrity in government systems
- Parsing and validating data to ensure compliance with regulatory requirements
- Declaring required and optional parameters to support flexible government operations
- Converting query parameter types to facilitate seamless integration with existing government platforms
- Handling multiple path and query parameters for comprehensive data management in government applications
Declaring a Request Body with Pydantic Models
- Creating a data model to ensure consistent data representation for government processes
- Combining path, query, and body parameters to optimize API functionality for government services
- Declaring validations and metadata to enhance data accuracy and reliability in government systems
- Using deeply nested models to support complex data structures in government applications
- Defining example data to facilitate testing and development of government APIs
- Response and extra models for comprehensive API documentation and governance in government
Defining Forms and Files
- Using form fields instead of JSON to support diverse input methods for government users
- Creating file parameters to enable document management in government applications
- Utilizing file and form parameters to enhance user experience in government services
Handling Errors
- Using HTTPException to manage errors effectively in government APIs
- Adding custom headers to provide additional context for error responses in government systems
- Installing custom exception handlers to tailor error management for specific government requirements
- Overriding default exception handlers to ensure compliance with government standards
Working with Databases
- Object-Relational Mappers (ORMs) and file structure best practices for government applications
- Creating SQLAlchemy components to support robust database interactions in government systems
- Developing database models to ensure data integrity and security for government operations
- Creating Pydantic models to facilitate seamless data exchange in government APIs
- Performing CRUD (Create, Read, Update, Delete) operations to manage data efficiently for government
- Creating tables, dependencies, and path operations to support scalable government applications
- Reviewing and checking files to ensure compliance with government standards
- Interacting with the database to support real-time data processing in government services
Security and Authentication
- Using OAuth2 and OpenID Connect for secure authentication in government applications
- Defining multiple security schemes with OpenAPI to enhance access control for government systems
- Leveraging FastAPI utilities to streamline security implementation for government use cases
Deployments
- Deployment concepts, stages, and tools tailored for government environments
- Working with Gunicorn and Uvicorn to support high-performance government applications
- Utilizing container systems (Docker and Kubernetes) to ensure scalable and reliable deployment of government services
Troubleshooting
Summary and Next Steps
Requirements
- An understanding of Application Programming Interface (API) concepts
- Experience with Python programming
Audience
- Developers for government and other sectors who require proficiency in API integration and Python scripting
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)