Fast API: Building Modern Web Application using Python and Fast API
This course provides a comprehensive introduction to Fast API, a modern, high-performance web framework for building APIs with Python. You will learn the fundamentals of web development using Fast API, including installation, creating basic applications, and starting the application using …
This course provides a comprehensive introduction to Fast API, a modern, high-performance web framework for building APIs with Python. You will learn the fundamentals of web development using Fast API, including installation, creating basic applications, and starting the application using Uvicorn. The course covers essential topics such as working with path parameters, query parameters, and validating parameters. You will also explore advanced features like handling templates, serving static files, working with forms, and enabling file uploads.
Additionally, the course dives into headers, responses, dependency injection, and Cross-Origin Resource Sharing (CORS) implementation. You will learn about cookie and header parameters, response models, and creating CORS middleware. The course also covers database integration with Fast API, demonstrating how to perform CRUD operations using plain Python, SQL databases, MongoDB, and GraphQL. You will also learn how to add validations to forms and integrate frontend components using Jinja2 templates.
Moreover, the course explores advanced topics like WebSockets, events, middleware, and sub app mounting. You will create a basic chat application using Fast API and WebSockets, and learn how to handle startup and shutdown events, create custom middleware, and mount sub applications or Flask applications within Fast API.
Finally, the course concludes with deployment options for Fast API applications. You will learn how to deploy your application on Heroku for free, dockerize the application for deployment in a Virtual Private Server (VPS), and summarize the key concepts and skills covered throughout the course.
Course Outcome
- Gain proficiency in Fast API web development.
- Build and deploy robust API applications using Fast API.
- Understand and implement routing with path and query parameters.
- Validate parameters and use Pydantic for request body validation.
- Work with templates, forms, and file uploads in Fast API.
- Manage headers, responses, and dependency injection.
- Implement Cross-Origin Resource Sharing (CORS).
- Integrate Fast API with various databases, including SQL, MongoDB, and GraphQL.
- Perform CRUD operations on the backend and frontend using Fast API.
- Create real-time applications using WebSockets and events.
- Develop custom middleware and mount sub apps within Fast API.
- Deploy Fast API applications on Heroku and in a Docker container on a VPS.