Building a REST API with FastAPI, Async SQLModel, and PostgreSQL

  Рет қаралды 8,505

Ssali Jonathan

Ssali Jonathan

Күн бұрын

Пікірлер: 51
@SsaliJonathan
@SsaliJonathan 8 ай бұрын
Hi guys, Kindly click the like button because this video was hard to make. Please join me on my discord server here. discord.gg/jqde9VSG
@kisamehoshigaki-u1p
@kisamehoshigaki-u1p 8 ай бұрын
bro invite link not working for me
@damarisscott7643
@damarisscott7643 3 ай бұрын
Also did not work for me :(
@illuminaughty666
@illuminaughty666 8 ай бұрын
TBH this channel got me so much interest and motivation to learn FastAPI
@SsaliJonathan
@SsaliJonathan 8 ай бұрын
Thanks for the kind comment
@andersonlontsi299
@andersonlontsi299 8 ай бұрын
Thank you sir. I followed your DRF tutorial and even deployed my app , but Please i have a serious issue managing migrations production. i made some research and decided not to push my migration files anymore so that the command:"release: python manage.py migrate --no-input" in the procfile will take care of migrating everything. But i don't understand why added a field and migrations occured locally and are working fine but in production there is this error:"column main_item.price does not exist". Please sir could you make a video to explain us the best practices for handling migrations/database changes in production? I'm sure it will help more than one. i reall will be grateful 🙏🙏 It is a backend on which i'll certainly have to be doing changes from time to time and i don't want this to happen when there will be actual data in the backend( will soon release the app i'm working on). Since so far i have been resolving this problem by formating the database😔😥 It really hurts
@codeaperture
@codeaperture 2 ай бұрын
Much love from Kenya. Kazi safi! Had to sub. I'm loving FastAPI
@SsaliJonathan
@SsaliJonathan 2 ай бұрын
I’m glad you like it. Thanks for watching
@tomshelby3029
@tomshelby3029 Ай бұрын
It was super helpful!
@SsaliJonathan
@SsaliJonathan Ай бұрын
Glad it was helpful!
@NtcPedroPeterNews
@NtcPedroPeterNews 2 ай бұрын
Fantastic tutorial, thank you so much!
@SsaliJonathan
@SsaliJonathan 2 ай бұрын
Glad you found it useful
@martinmiz
@martinmiz 8 ай бұрын
Another great tutorial. Thank you very much. I would like to request for a tutorial of FastAPI with React, showing the frontend and backend usage of the API. I would also like to see how you handle storage of other data files like images in the API database.
@SsaliJonathan
@SsaliJonathan 8 ай бұрын
Sure. Nice topic. I will consider making this
@terryliu3635
@terryliu3635 3 күн бұрын
I need to try this tomorrow. been struggling with the same scenario. I was using asyncpg only to connect to the Postgres database in Docker. I do not have any problem connecting to the database from another Python file, just this "fastAPI + async + Postgres + asyncpg package" does not work for me....do you have any experience using asyncpg package...maybe could shed some light here? thanks!
@SsaliJonathan
@SsaliJonathan 3 күн бұрын
a good URI could be asyncpg+postgresql://:@/
@terryliu3635
@terryliu3635 2 күн бұрын
@@SsaliJonathan Thanks Jonathan. I switched this to the approach you mentioned in your video, I got the same error message "Connection test failed: Multiple exceptions: [Errno 111] Connect call failed ('::1', 5432, 0, 0), [Errno 111] Connect call failed ('127.0.0.1', 5432)"... PS. I'm Uvicone + Fastapi in my VS.code on Mac and Postgres in Docker on the same machine. I wonder if this is something else...because if I do not use FastAPI to call Postgres the same way, I do not have any problems getting the records successfully. Your video is still valuable to me since I know FastAPI + Async + Postgres works.
@terryliu3635
@terryliu3635 2 күн бұрын
OMG!! based on what I learned here plus ChatGPT and Claude, it's the network, I should NOT have used localhost since both my Postgres and my Fast API are in containers!! It worked fine now! Thanks again!
@densondube369
@densondube369 8 ай бұрын
Hey Jonathan, I have config.py just as you have it on your video, but settings = Setting() has Settings() underlined( error = Argument missing for parameter "DATABASE_URL"). Why?
@densondube369
@densondube369 8 ай бұрын
No worries, got sorted. Was missing a 'package'
@densondube369
@densondube369 8 ай бұрын
Awesome tutorial!
@SsaliJonathan
@SsaliJonathan 7 ай бұрын
Glad you did!
@SsaliJonathan
@SsaliJonathan 7 ай бұрын
Thanks for watching
@deevirus6725
@deevirus6725 8 ай бұрын
How to read Excel file form storege and upload it on firestore plz make ASAP 😅
@deevirus6725
@deevirus6725 8 ай бұрын
Reply please
@ozoindaprince
@ozoindaprince 5 ай бұрын
NA WHY WE DE CALL YOU GOAT! YOU NA BIG 7. TYSM
@arminkessler2566
@arminkessler2566 8 ай бұрын
Hi Jonathan, could you include Authentication in a next part of this serie of videos. Thanks in advance.
@SsaliJonathan
@SsaliJonathan 8 ай бұрын
Great suggestion!
@arminkessler2566
@arminkessler2566 8 ай бұрын
@@SsaliJonathan Thank you Jonathan , your videos are excellent , regards Armin
@SsaliJonathan
@SsaliJonathan 8 ай бұрын
Hey, the comment section is really quiet.
@damarisscott7643
@damarisscott7643 3 ай бұрын
Hi Jonathan, I was not able to join the Discord from the link provided. It says I do not have permisson to join.
@SsaliJonathan
@SsaliJonathan 3 ай бұрын
Let me give you a new link
@SsaliJonathan
@SsaliJonathan 3 ай бұрын
discord.com/invite/yqpwkwjRbx
@TheHeroIsRisingUp
@TheHeroIsRisingUp 5 ай бұрын
is SQLModel a substitute for SQLAlchemy? any idea guys
@SsaliJonathan
@SsaliJonathan 5 ай бұрын
Not really. It’s just a modification of, or think of it like a child of Sqlalchemy that’s built to have pydantic powers and can be used smoothly with modern python frameworks
@TheHeroIsRisingUp
@TheHeroIsRisingUp 5 ай бұрын
@@SsaliJonathan Thank you bro! I am looking forward to this incredible tutorial.
@andriykostenko3688
@andriykostenko3688 8 ай бұрын
Nice job !!!
@SsaliJonathan
@SsaliJonathan 8 ай бұрын
Thank you! Cheers!
@coff3andprograming
@coff3andprograming 8 ай бұрын
I love FastAPI❤
@SsaliJonathan
@SsaliJonathan 8 ай бұрын
Me too. It’s such a great framework
@coff3andprograming
@coff3andprograming 8 ай бұрын
I don't know if you have programmed with nestjs, but I feel that FastAPI is the lost brother of this framework since both offer fast, scalable APIs, they use data types, they can be structured almost the same way, they offer autocompletion in the editor, both have documentation in open api, etc.@@SsaliJonathan
@macmillerlover
@macmillerlover 8 ай бұрын
hello jo, i wanted to make a request. could you please make a full course on testing with python? especially mocking
@SsaliJonathan
@SsaliJonathan 8 ай бұрын
Got it. Will make one. Thanks for the suggestion
@netkap9920
@netkap9920 8 ай бұрын
awsome
@derekstevens164
@derekstevens164 8 ай бұрын
My wife's son is gay
@SsaliJonathan
@SsaliJonathan 8 ай бұрын
Does he use FastAPI?
@derekstevens164
@derekstevens164 8 ай бұрын
@@SsaliJonathan no. Also, why do they not update SQLModel for the pacman library
@SsaliJonathan
@SsaliJonathan 8 ай бұрын
@@derekstevens164 what is the pacman library?
@derekstevens164
@derekstevens164 8 ай бұрын
@@SsaliJonathan I use arch linux
@terryliu3635
@terryliu3635 3 күн бұрын
Great tutorial, thank you!!
@SsaliJonathan
@SsaliJonathan 3 күн бұрын
I’m glad you liked it.
Introduction to Dependency Injection In FastAPI
21:31
Ssali Jonathan
Рет қаралды 2,4 М.
Building a REST API with FastAPI, Async SQLAlchemy, and PostgreSQL
1:23:24
Пишем REST API сервис на Go - УЛЬТИМАТИВНЫЙ гайд
2:57:51
Николай Тузов — Golang
Рет қаралды 148 М.
Building A Simple WebSocket Chat Application With FastAPI And JavaScript
2:28:55
SQLModel + FastAPI: Say Goodbye to Repetitive Database Code
19:50
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 148 М.
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 177 М.
FastAPI Crashcourse - build your own REST-API
33:48
Coding Crash Courses
Рет қаралды 3,7 М.