Third-Party Services Integration with FastAPI and Beanie
After learning about the tools that compose the FARM stack, you will see them combined in a more complex setting in this chapter. You will build on your knowledge of Pydantic and FastAPI to learn about Beanie, one of the most popular MongoDB Object-Document Mappers (ODMs), and how it can make your code more efficient and enhance your developer experience.
Finally, you will see how the stack’s flexibility is useful when you need to extend your application with external, third-party functionality. In this chapter, you will add a fully AI-based salesperson assistant that will make use of OpenAI to create catchy car descriptions, and then you will use the Resend API service to send automated emails.
These functionalities are becoming more and more central to web application requirements in the modern web, and through this chapter, you will see how the right set of tools can make application development more efficient...