(as of Nov 04, 2023 13:06:17 UTC – Details)
Learn all the features and best practices of FastAPI to build, deploy, and monitor powerful data science and AI apps, like object detection or image generation.
Purchase of the print or Kindle book includes a free PDF eBook
Key FeaturesUncover the secrets of FastAPI, including async I/O, type hinting, and dependency injectionLearn to add authentication, authorization, and interaction with databases in a FastAPI backendDevelop real-world projects using pre-trained AI modelsBook DescriptionBuilding Data Science Applications with FastAPI is the go-to resource for creating efficient and dependable data science API backends. This second edition incorporates the latest Python and FastAPI advancements, along with two new AI projects – a real-time object detection system and a text-to-image generation platform using Stable Diffusion.
The book starts with the basics of FastAPI and modern Python programming. You’ll grasp FastAPI’s robust dependency injection system, which facilitates seamless database communication, authentication implementation, and ML model integration. As you progress, you’ll learn testing and deployment best practices, guaranteeing high-quality, resilient applications.
Throughout the book, you’ll build data science applications using FastAPI with the help of projects covering common AI use cases, such as object detection and text-to-image generation. These hands-on experiences will deepen your understanding of using FastAPI in real-world scenarios.
By the end of this book, you’ll be well equipped to maintain, design, and monitor applications to meet the highest programming standards using FastAPI, empowering you to create fast and reliable data science API backends with ease while keeping up with the latest advancements.What you will learnExplore the basics of modern Python and async I/O programmingGet to grips with basic and advanced concepts of the FastAPI frameworkDeploy a performant and reliable web backend for a data science applicationIntegrate common Python data science libraries into a web backendIntegrate an object detection algorithm into a FastAPI backendBuild a distributed text-to-image AI system with Stable DiffusionAdd metrics and logging and learn how to monitor themWho this book is for
This book is for data scientists and software developers interested in gaining knowledge of FastAPI and its ecosystem to build data science applications. Basic knowledge of data science and machine learning concepts and how to apply them in Python is recommended.
Table of ContentsPython Development Environment SetupPython Programming SpecificitiesDeveloping a RESTful API with FastAPIManaging Pydantic Data Models in FastAPIDependency Injection in FastAPIDatabases and Asynchronous ORMsManaging Authentication and Security in FastAPIDefining WebSockets for Two-Way Interactive Communication in FastAPITesting an API Asynchronously with pytest and HTTPXDeploying a FastAPI ProjectIntroduction to Data Science in PythonCreating an Efficient Prediction API Endpoint with FastAPIImplementing a Real-Time Object Detection System Using WebSockets with FastAPICreating a Distributed Text-to-Image AI System Using the Stable Diffusion ModelMonitoring the Health and Performance of a Data Science System
ASIN : B0C9D1QYVX
Publisher : Packt Publishing; 2nd edition (July 31, 2023)
Publication date : July 31, 2023
Language : English
File size : 11128 KB
Text-to-Speech : Enabled
Enhanced typesetting : Enabled
X-Ray : Not Enabled
Word Wise : Not Enabled
Sticky notes : On Kindle Scribe
Print length : 422 pages