Fastapi RESTful API CRUD postgresql

preview_player
Показать описание
In this article we create simple project how to connect Postgresql as database with FastAPI. FastAPI is a modern, high-performance, batteries-included Python web framework that's perfect for building RESTful APIs.

Check article in website:

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

Really good refresher especially before interviews. Thanks!!

equatn
Автор

this is a great repo for started in fastapi posgrest crud.
it's quite easy to understand and simple enough for starter.
but it's missing authenticate, and in the crud, it's wrong about the input and output schema.
such as in delete, we don't have to transfer the whole body to it, just need an id in the params, that's all.
but for me, this repo is good enough.
good work.

futhedude
Автор

I followed the video and I kept asking myself, are showing us that you know how to do it or your goal is to teach us? It's obvious that you know how to do it but most people would learn nothing by just following the fastforwarded video.

raphaelnwalozie
Автор

Great video...

2:24 is autoflush=False instead autflush=False

CamiloValencia
Автор

Hi, sorry for my english, i hope you can understand my question. Why a simple localhost get request takes 500ms to response?. I create a FastApi project and Ruby on Rails project, and Rails response in 150 ms, meanwhile FastApi in 500ms for que same sql query. I think 500ms es to much for a simple query in localhost, i dont know if i can improve that response time, or 500ms is normal for FastApi.
Sorry for my english one more time :(

GolpesSecos
Автор

Your crud operation are blocking IO bound operations. Shouldn't you be using await ...?

clearthinking
Автор

I’m couldn’t be able to import sessionlocal from config is there is any alternative…?

shobithad
Автор

Hey bro it's work If I would like to put data from api to database ?
If yes where is it ?
Thx in advance

FractalysSync
Автор

Could you please share the code repository

Patrickdot
Автор

I love the music, but could do without the jarring sound effects

RanjitMarathay
Автор

where is postgres? how did you create it? is everytrhing working? many questions... it turned to be waste of time. Dont watch this

dreambasel