FastAPI Series | Tutorial 09 (Async Databases with FastAPI)

preview_player
Показать описание
Thank you for 100 subscribers! I really appreciate it! In this video, we are going to learn about using databases, a tool, that will help us add support with sqlalchemy.

The dependencies you need to install are:

pip install aiosqlite
pip install databases
--------------------------------------
Standard dependencies:

pip install fastapi
pip install uvicorn

Please like and subscribe!

For github repository with the code exmaples:

Thanks to SnkSynthesis for logo!

Please like and please subscribe!

#python #fastapi #async
Рекомендации по теме
Комментарии
Автор

The dependencies you need to install:

pip install aiosqlite
pip install databases

Make sure to remember to install the standard dependencies that are listed in the description.

isaiahttech
Автор

Thank you very much! Very useful video about databases. It helped me

eugenia
Автор

The video is taking a bit of time to process into full HD resolution. Sorry for the wait. Thank you!

isaiahttech
Автор

Hello! It has been quite awhile since I have posted I video. I will be posting a video soon this week. Thank you!

isaiahttech
Автор

Hi, thanks for this tutorial, we really appreciate it. But how can we do this with separate files like models.py, schema.py, database.py, and an endpoint.py?

Chocolanay
Автор

Is this the last video of this tutorial series? Do you have a course brochure, like a learning plan for FastAPI or any relevant materials to recommend? Thanks!

tankman
Автор

is there way in fastapi to connect to 2 different databases?
I want to connect with postgres and Timescaledb

amateurastronomer
Автор

I have been following along the series and you have explained it very well. I am building a project witH FastAPI as backend and this has been a lot helpful. I have some errors though, I am not able to connect to Postgresql with it and not able to merge an HTML frontend to it, as when I connected the HTML, it doesn't get stored in the file of store.db, the query does operate well but isn't storing .. Any suggestions ?

HarshGhodkar
Автор

How does id increments automatically and how "await database.execute(query)" gives the incremened id? Seems so absurd....

RandomGuy-dfoy
Автор

run method: @app.delete('/register/{id}', response_model=Register), had a error. File "d:\2019python\virtualenvs\flaskenv\lib\site-packages\fastapi\routing.py", line 190, in app
response_data = await serialize_response(
File "d:\2019python\virtualenvs\flaskenv\lib\site-packages\fastapi\routing.py", line 111, in serialize_response
raise ValidationError(errors, field.type_)
1 validation error for Register
response
value is not a valid dict (type=type_error.dict). Why? thanks.

skysea
Автор

Sir please increase video quality
How much time required for complete this playlist

SahilKhan-yuoh
Автор

Hi, 360p is a poor resolution, it is almost unpossible to read your screen. Could you upload better versions?

rene