FastAPI - Build your first API with Python's Fastest API Web Framework!

  Рет қаралды 60,093

Very Academy

Very Academy

Күн бұрын

Пікірлер: 113
@joshuamarcano350
@joshuamarcano350 2 жыл бұрын
17 mins in and I already know I found the most comprehensive video about this.
@veryacademy
@veryacademy 2 жыл бұрын
Thanks
@shygrammer
@shygrammer 2 жыл бұрын
As a backend engineer, docker is most important and confusing for beginners. You made it look really easy!! Thank you!
@danswaney4134
@danswaney4134 Жыл бұрын
I had to change the first line in the *'Dockerfile'* to: *FROM python:3.9* ...because it was trying to use *Python 3.11* and caused a build break with *'greenlet'* and the failure when the *c_app* tries to use 'psycopg2'. Hope this helps in case someone else has the same issue I had. It all worked after citing to use *Python 3.9*.
@yuvrajr6491
@yuvrajr6491 Жыл бұрын
Thanks man
@rajuljha
@rajuljha Жыл бұрын
Thanks for saving me man! I was troubleshooting for quite some time and finally this worked for me!
@touchtbo
@touchtbo 6 ай бұрын
Thanks, man a year later this reply is still useful.
@Dystopian1
@Dystopian1 4 ай бұрын
Does it work with psycopg2-binary?
@anthonyjones7467
@anthonyjones7467 9 ай бұрын
Great video! Very helpful overview and great explanations of the details. It's the most thorough (and practical) I've come across. Thanks!
@veryacademy
@veryacademy 9 ай бұрын
Glad you enjoyed it! I have just made a new FastAPI course. Happy for you to have it, just email me I will link you it for free. helpdesk@veryacademy.com
@DhruvSharma-zu7pq
@DhruvSharma-zu7pq 3 жыл бұрын
You are a true saviour to junior devs trying to get through the python eco-system! You're my inspiration Zander!!
@veryacademy
@veryacademy 3 жыл бұрын
Hi Dhruv, too kind! 👍
@skysaville
@skysaville 2 жыл бұрын
Ha Ha!!! I had forgotten the env vars for pgadmin... I was going along and ran the 'up' command and it threw an error. Took me a hot second to realize I never added the environment variables for it. Funny enough... I had paused the video to troubleshoot it and work through everything, then sure enough... you hit the same error code. Kind of put a smile on my face. Love the content!
@skysaville
@skysaville 2 жыл бұрын
50:05 -- Database models
@as5728-h1i
@as5728-h1i 2 жыл бұрын
After your Django REST API tutorial, I was looking forward to this. Thank you so much
@veryacademy
@veryacademy 2 жыл бұрын
Glad it was helpful!
@NvmThemHereIAm
@NvmThemHereIAm 2 жыл бұрын
this tutorial is seriously underrated. Very useful information! Thanks
@veryacademy
@veryacademy 2 жыл бұрын
Glad it was helpful!
@brianoflondon
@brianoflondon 3 жыл бұрын
Excellent video! Making little mistakes is absolutely fantastic. The debugging process is so valuable!
@brianoflondon
@brianoflondon 3 жыл бұрын
I've been trying to understand how to dev inside a live Docker Container and suddenly at 50m after you fixed the error on startup of the API for the first time I understood!!!!
@veryacademy
@veryacademy 3 жыл бұрын
Totally agree!
@brianoflondon
@brianoflondon 3 жыл бұрын
@@veryacademy I think I just figured out how to attach to a running container with vscode to use the debugger but a clear video on this would be super useful to many.
@PrakashReddyK
@PrakashReddyK 2 жыл бұрын
Very very informative video , crystal clear and straight to the point ,Thank your very much for your efforts , Keep the Fast API videos coming.
@romabalance
@romabalance Жыл бұрын
Thank you! You explain really calm and sequently 🙏
@matheusc.manoel4657
@matheusc.manoel4657 2 жыл бұрын
Got an error related to greenlet on docker-compose build. Fixed by changing greenlet version to 2.0.a2 on requirements.txt. Not sure it broke something but the docker-compose build command worked.
@matheusc.manoel4657
@matheusc.manoel4657 2 жыл бұрын
I ran into another error with psycopg. Like the previous one, it was because of the python version (3.11) on the app container. So i changed the first line of the Dockerfile to "FROM python:3.8.10"
@sid9137
@sid9137 Жыл бұрын
Thanks a lot bro, I faced the same error.
@zhangmingkai2008
@zhangmingkai2008 2 жыл бұрын
That's great. Watched a lot of videos and that's what I needed.
@che_coelho
@che_coelho 2 жыл бұрын
Absolutely brilliant tutorial. Few and far between to see architecture like this weaved together and used effectively. Well done!
@vulnerablegrowth3774
@vulnerablegrowth3774 3 жыл бұрын
Thank you for making this a more complete tutorial. I find it a little annoying when tutorials give you the basic information you can find on the documentation, but don't take it the step further to make it into an actual production-level app. There's a lack of truly "end-to-end" type tutorials.
@veryacademy
@veryacademy 3 жыл бұрын
Hey there. Yeah, I have fallen foul of that. I will be making bigger efforts in future tutorials to point people to other sources, and to ensure they know where the source of the tutorial should it be similar to the documentation. I like to think I try and compliment the documentation. I think part of the issue is that the documentation doesn't always provide clarity to cater for those at different levels of their development. Surveying the tutorial channels/courses over the last year, there is very little or no actual production-level development tutorials or courses. It is no surprise really. The varied skillset as an individual needed to do this would probably mean they are already getting paid an excellent wage. Why would you make code tutorials when you can make more money from funny cats right! It will take a few iterations, but my goal is to get an end to end Django app out there - this is what the ecommerce development is all about. It is just a mammoth amount of time needed.
@rohitgautam3933
@rohitgautam3933 3 жыл бұрын
Thank you !! This is what I was looking for :)
@veryacademy
@veryacademy 3 жыл бұрын
You are welcome!
@AnsumanSingh1
@AnsumanSingh1 Жыл бұрын
So much to learn. Thank you for making this video.
@doyourealise
@doyourealise 3 жыл бұрын
amazing subscribed...keep on continue fastapi sir. Loved it from nepal :)take care
@veryacademy
@veryacademy 3 жыл бұрын
Thank you so much 😀
@androidbox6876
@androidbox6876 Жыл бұрын
Best all around tutorial 🤓
@ChandaKumari-wz2or
@ChandaKumari-wz2or 3 жыл бұрын
Thanks a lot for this tutorial, this made my day :)
@Chocolanay
@Chocolanay 3 жыл бұрын
Thanks for fulfilling my request 😁
@veryacademy
@veryacademy 3 жыл бұрын
Slowly working through a list here. Its a bit random sometimes. Hope it is useful!
@al3030
@al3030 3 жыл бұрын
Thanks. Appreciate the video and end-to-end tutorial :-) What could enhance this great video further, is before diving into the walk through in part 3 to set-up the main components and packages in a few slides and explain their purposes and how they interact. We get introduced to them on the fly and I found it hard to digest in one go. I guess one can rewatch this section a few times to get it but if you would make this little shortcut, I think it would bring this great video to GOLD standard :-) Keep up the good work and valuable content!
@kostiantynivashchenko2835
@kostiantynivashchenko2835 3 жыл бұрын
Thank you for your work, one is very explanation for beginning.
@veryacademy
@veryacademy 3 жыл бұрын
You are welcome!
@markistheone947
@markistheone947 3 жыл бұрын
Amazing job, will promote this channel to everyone.
@veryacademy
@veryacademy 3 жыл бұрын
👍
@sweetshoez
@sweetshoez Жыл бұрын
This was very helpful, great stuff
@veryacademy
@veryacademy Жыл бұрын
Glad to hear it!
@AcademyOmen
@AcademyOmen 3 жыл бұрын
Sir what about the open source project you mentioned once, wanna be helping in Django project so you have more time to record🙏
@veryacademy
@veryacademy 3 жыл бұрын
Hey, thank you - in a week or two I will make a video about it all. No surprises here, I would like to help testing the ecommerce project so that we can get it fully tested ready to add more advanced content. Just need to set it all up.
@AcademyOmen
@AcademyOmen 3 жыл бұрын
@@veryacademy Alright Sir.. Waiting 🙏 Thanks for the feedback
@arturocdb
@arturocdb 2 жыл бұрын
Really great!…, thank you so much for doing so simple!… really appreciated!…
@veryacademy
@veryacademy 2 жыл бұрын
You're very welcome!
@tayfununver3330
@tayfununver3330 Жыл бұрын
Thank very much. What a wonderful video.👍
@jackfrost8969
@jackfrost8969 3 жыл бұрын
I'm learning Django Rest Framework and it's taking a great toll on me. I hope this one is much simpler something like node and express.
@veryacademy
@veryacademy 3 жыл бұрын
Just keep at it - it will slowly all sink in.
@magdyismail946
@magdyismail946 7 ай бұрын
Thanks a lot pro for this tutorials 🙂🙂🙂
@heavyfpv
@heavyfpv Жыл бұрын
Nice tutorial, Bro!
@whichdude420
@whichdude420 3 жыл бұрын
Ayyyy FastAPI let's gooo!
@boyloverzone
@boyloverzone 2 жыл бұрын
Thank you very much, understand more about Docker.
@elatreby8065
@elatreby8065 3 жыл бұрын
one word ... LEGEND!
@veryacademy
@veryacademy 3 жыл бұрын
Keep in touch...
@androchvertkini7309
@androchvertkini7309 2 жыл бұрын
Thanks a lot for your work! Very helpful content with a great explanation.
@perceptron5983
@perceptron5983 2 жыл бұрын
Thank you for your efforts Sir. You have a new subscriber.
@robvp71
@robvp71 2 жыл бұрын
Excellent tutorial.. highly appreciated!
@AcademyOmen
@AcademyOmen 3 жыл бұрын
Oh My My, thanks Sir.. Wanted to experiment with some fast API😆
@veryacademy
@veryacademy 3 жыл бұрын
Enjoy
@nottobethatpersonbut
@nottobethatpersonbut 2 жыл бұрын
For you M1 mac users that get a problem when trying to migrate your db with the "docker-compose run app alembic revision --autogenerate -m "New Migration", you can try what i found to work. The error text: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) SCRAM authentication requires libpq version 10 or above So to fix that open the Dockerfile and change python version to 3.11 = FROM python:3.11 Then after RUN pip3 install --upgrade pip ..You add the following 2 lines: RUN apt update -y && apt install -y build-essential libpq-dev RUN pip3 install psycopg2-binary --no-binary psycopg2-binary Hope this help!
@joaopedroortunes686
@joaopedroortunes686 3 жыл бұрын
Hey Zander, really cool video !! Do you plan to make a series about fastapi? Like some kind of complete app like the ones you do in Django? Thanks for your videos man, they are really good!
@ardyubanos9226
@ardyubanos9226 2 жыл бұрын
Is there a N+1 problem in Fastapi just like Django?
@havingfunxd
@havingfunxd 2 жыл бұрын
What color scheme is that in VSCode? Does anyone know? Pretty please
@denmarkgarcia5153
@denmarkgarcia5153 3 жыл бұрын
Thanks for this sir!
@liberana
@liberana 3 жыл бұрын
I was having issue with update/put method, any help?
@rangabharath4253
@rangabharath4253 3 жыл бұрын
Awesome 👍
@veryacademy
@veryacademy 3 жыл бұрын
Thanks 🤗
@fjoralbismolli3490
@fjoralbismolli3490 3 жыл бұрын
It seems that we cannot access the database if we run it locally :/. I would appreciate any help on this issue.
@lolsito2
@lolsito2 2 жыл бұрын
I got this error when i docker-compose up (FAILED: No config file 'alembic.ini' found, or file has no '[alembic]' section), what i need to do to fix it, i tried everything but still doesnt work
@jacklinetum5460
@jacklinetum5460 Жыл бұрын
Facing this today too😢
@spatialnasir
@spatialnasir 9 ай бұрын
I also faced the same issue. But I didn't see the error when I finished the tutorial. My advise: skip the demo part and debug along as you follow the tutorial.
@davishek7
@davishek7 3 жыл бұрын
Are you going to make a series or just single video. Anyway great as usual.
@veryacademy
@veryacademy 3 жыл бұрын
No idea, depends if anyone wants it a guess. There is still much to be done with Django of course.
@muhammadashirali4982
@muhammadashirali4982 2 жыл бұрын
I need update and delete methods for this? Can someone help me with this
@imaginatecstv
@imaginatecstv Жыл бұрын
Hi Zander. Your Django ecommerce series is great. I think it'll be perfect to recreate your ecommerce series using FastAPI to create APIs instead of Django for APIs. FastAPI is faster and API first package. So, we can enjoy faster API calls for large scale systems. What do you say?
@veryacademy
@veryacademy Жыл бұрын
I have plans to do more FastAPI tutorials and courses. I am at the minute building an SQLAlchemy Course which features FastAPI and Flask. The plan is at the minute is to finish that then roll out the last parts of the djChat. With that done I will do a FastAPI fapiChat, replicate the project with other tools. I then after or before need to pump out the Django Mastery which will be a 100+ hour course. There is just so much to do. With the ecommerce work, I want to build something much more indepth which includes deeper design, testing phases to make it more realistic, want people to feel they are actually doing a real project. Needless to say, there is much work to do done.
@imaginatecstv
@imaginatecstv Жыл бұрын
@@veryacademy Thank you so much for the reply. Also, I think with the Django e-commerce work, to make that playlist more complete, adding Payment integration tutorial to the existing DB design would make it pave the way for someone to go ahead and create frontend by themselves. I'm thinking to create a product out of your tutorials of Django series v2. Is that in your plan, Zander?
@epic3548
@epic3548 2 ай бұрын
If u still getting errors you can remove versions from all the packages in the requirements.txt file
@TheAremoh
@TheAremoh 3 жыл бұрын
Wow, just wow!
@medazizchagour6750
@medazizchagour6750 3 жыл бұрын
i tried using the python alpine version but it did not work .. any ideas why ?
@veryacademy
@veryacademy 3 жыл бұрын
Hi, sorry not at the computer, but, I did address this I think in the later tutorial you will find a docker file using alpine
@santoshmaharana4020
@santoshmaharana4020 3 жыл бұрын
Can you make an E-commerce project in fast API?
@santoshmaharana4020
@santoshmaharana4020 3 жыл бұрын
thank you for making these videos
@veryacademy
@veryacademy 3 жыл бұрын
Thanks Santosh - I am working on version 2 of the ecommerce store with the mindset that I will roll it out with Django templates > React/Next.js > GraphQL > Fast API. It is partly reason I started rolling out these introductory tutorials 👍
@robvp71
@robvp71 2 жыл бұрын
2022 update > if you get an error about postgres 14 vs 13 change the postgres image to image: postgres:13.7-alpine3.16, remove the already built images and build it again. That should solve the issue.
@hassannaghibi1979
@hassannaghibi1979 2 жыл бұрын
so interesting
@gunahawk6893
@gunahawk6893 2 жыл бұрын
For job opportunity can i bet on fastapi?
@veryacademy
@veryacademy 2 жыл бұрын
Think of fast api as a tool, in order to use tools you need to understand in this case Python / databases. Typically you would apply for Python roles and fastapi might be a tool you use in the job. There won’t be as many jobs for a specific tools such as fastapi
@gunahawk6893
@gunahawk6893 2 жыл бұрын
@@veryacademy understood thanks for the reply bro
@mohammadpalashbabu8718
@mohammadpalashbabu8718 3 жыл бұрын
Can It replace of django?
@veryacademy
@veryacademy 3 жыл бұрын
API wise, yeah definitely.
@a225855305
@a225855305 3 жыл бұрын
can we also add a streamlit course to connect to this API Web Framework! It will be so great!
@justacasualdeveloper
@justacasualdeveloper 3 жыл бұрын
Looks like I have a long video to watch today 😁.
@veryacademy
@veryacademy 3 жыл бұрын
Hope you enjoyed it!
@justacasualdeveloper
@justacasualdeveloper 3 жыл бұрын
@@veryacademy I loved it, although I had to skip the initial portion (Docker), I learned a new technology. One question tho, are you planning to make a series or only some videos on this topic ?
@veryacademy
@veryacademy 3 жыл бұрын
@@justacasualdeveloper Am just building another one at this minute with GraphQL
@sauravadhikari8645
@sauravadhikari8645 3 жыл бұрын
@@veryacademy oh wow, I'm looking forward to watching it. 😁
@Hemant-Dev
@Hemant-Dev Жыл бұрын
first of all thanks for this video and please tell me this theme name
@veryacademy
@veryacademy Жыл бұрын
Owl is the name of the theme
@Hemant-Dev
@Hemant-Dev Жыл бұрын
@@veryacademy thanks for your reply
@wanderer4825
@wanderer4825 Жыл бұрын
God's and Angel's bless and protect you always.
@drdarbandi48
@drdarbandi48 2 жыл бұрын
Xander My Man Please Start a Course about Creating telegram Robots
@veryacademy
@veryacademy Жыл бұрын
Its a bit out there for now, but I will consider it in the future. At the moment, I am focused on Django.
@Gorlung
@Gorlung Жыл бұрын
thanks god, not an indian tutorial!
@jacklinetum5460
@jacklinetum5460 Жыл бұрын
Lol😂
FastAPI and GraphQL - build your first API
1:15:54
Very Academy
Рет қаралды 23 М.
FastAPI Tutorial - Building RESTful APIs with Python
1:03:10
Amigoscode
Рет қаралды 254 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
FastAPI Celery, Flower and Docker
29:33
Very Academy
Рет қаралды 58 М.
How to Use FastAPI: A Detailed Python Tutorial
20:38
ArjanCodes
Рет қаралды 269 М.
Deploying FastAPI Apps Over HTTPS with Traefik Proxy
1:03:46
Traefik Labs
Рет қаралды 48 М.
FARM Stack Course - FastAPI, React, MongoDB
1:02:04
freeCodeCamp.org
Рет қаралды 153 М.
Python FAST API Tutorial
58:20
Tech With Tim
Рет қаралды 345 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
FastAPI with PostgreSQL and Docker
54:11
rithmic
Рет қаралды 42 М.