Skip to Content
Building Data Science Applications with FastAPI - Second Edition
book

Building Data Science Applications with FastAPI - Second Edition

by François Voron
July 2023
Intermediate to advanced content levelIntermediate to advanced
422 pages
9h 48m
English
Packt Publishing
Content preview from Building Data Science Applications with FastAPI - Second Edition

6

Databases and Asynchronous ORMs

The main goal of a REST API is, of course, to read and write data. So far, we’ve solely worked with the tools given by Python and FastAPI, allowing us to build reliable endpoints to process and answer requests. However, we haven’t been able to effectively retrieve and persist that information: we don’t have a database.

The goal of this chapter is to show you how you can interact with different types of databases and related libraries inside FastAPI. It’s worth noting that FastAPI is completely agnostic regarding databases: you can use any system you want and it’s your responsibility to integrate it. This is why we’ll review two different approaches to integrating a database: using an object-relational mapping ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Data Science Applications with FastAPI

Building Data Science Applications with FastAPI

François Voron
Learning Data Science

Learning Data Science

Sam Lau, Joseph Gonzalez, Deborah Nolan
Machine Learning for High-Risk Applications

Machine Learning for High-Risk Applications

Patrick Hall, James Curtis, Parul Pandey

Publisher Resources

ISBN: 9781837632749Supplemental Content