Mastering REST APIs with FastAPI

所在平台: Udemy

课程主页: https://www.udemy.com/course/rest-api-fastapi-python/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:掌握REST APIs与FastAPI 课程概述: 随着FastAPI的兴起,开发高性能API变得快速而简便。本课程将引导您从零开始构建一个完整的FastAPI应用。项目内容为构建一个社交媒体API,具有用户身份验证、电子邮件发送和文件上传功能。用户可以使用Bearer(JWT)令牌进行注册和登录,创建帖子、评论并点赞。 课程内容包括: - 数据验证:使用Pydantic进行数据验证,确保数据的有效性。 - 后台任务:学会在FastAPI中使用后台任务优化性能,例如发送电子邮件或进行慢请求操作。 - 数据库连接:使用async数据库库以提高性能,掌握不同类型的数据关系建模,尤其是多对多关系。 - 文件上传:处理文件上传及其后的处理,避免服务器空间不足。 课程将覆盖完整的API测试,您将使用pytest撰写集成和单元测试,包括pytest fixture、参数化和测试约定。此外,课程将介绍日志记录的最佳实践,包括如何设置日志模块、记录时机及日志存储策略。 最后,我会教您如何使用流行的服务Render部署您的FastAPI应用,涵盖免费的部署选项以及付费选项以提升性能。我们还将探讨应用管理、Sentry错误处理以及使用GitHub Actions进行CI/CD。 本课程适合希望使用FastAPI开发完整、真实世界API的开发者,涵盖了开发所需的一切。让我们开始吧!

课程评论(0条)

课程详情

With FastAPI you can build complete, high-performance APIs in days, and adding new features is blazing-fast. That's why FastAPI has become so popular in recent years.In this course, I'll show you how to go from a blank slate to a complete, finished FastAPI application.The projectWe'll build social media API with user authentication, email sending, and file upload. Users will be able to register and log in using Bearer (JWT) tokens. They will be able to create posts, leave comments, and like existing posts.We'll use Pydantic for data validation and encode/databases as our database connectivity library.Advanced knowledgeUse background tasks in FastAPI to improve performance when running slow code, such as when sending emails (covered in the course) or when making slow requests to third party APIs (also covered).Throughout the course we use an async database library, again to maximise performance, which is nonetheless straightforward to use. You'll learn about the different types of data relationships and how to model them, including many-to-many relationships.You'll learn how to handle file uploads and what to do with the uploaded files, so you don't run out of server space.Complete API testingFinally, 100% of the code in this course has tests. You'll use pytest extensively to write integration and unit tests for the API. You'll learn about pytest fixtures, parametrization, and testing conventions.Part of real-world development means logging! There's a lot of logging knowledge in this course, including how to set up the logging module properly, when to make logging calls, and where to store logs when your application is deployed.DeploymentsOf course, I'll show you how to deploy your FastAPI app using popular service Render. You can deploy your FastAPI app for free, but I'll also show you some paid options for improved performance.We'll also look at application management, error handling with Sentry, and CI/CD with GitHub Actions.If you use or want to use FastAPI, this course contains everything you need to develop complete, real-world APIs.Let's get started. I'll see you on the inside!

课程标签

0人关注该课程

主题相关的课程