FastAPI [ Python Web Framework ] Crash Course 2021 For Beginners

Поділитися
Вставка
  • Опубліковано 6 вер 2024

КОМЕНТАРІ • 160

  • @aitools24
    @aitools24 10 місяців тому

    00:00 FastAPI is a modern and fast web framework for building APIs with easy-to-use features.
    04:15 FastAPI uses ASCII server and Uvicorn implementation for building high performance sync IO services.
    08:52 FastAPI is a growing Python web framework
    13:48 Creating a router decorator in FastAPI
    18:15 Creating a minimal app with FastAPI
    23:50 Creating a to-do list API with GET, POST, and PUT requests
    28:49 Creating a delete route for to-do items
    34:33 FastAPI CRUD operations demonstrated
    Crafted by Merlin AI.

    • @BekBrace
      @BekBrace  10 місяців тому +1

      Thank you so much 😊👍🙏

  • @soulphish48
    @soulphish48 3 роки тому +17

    I've been following a tutorial using FastAPI that creates a web app. I thought I was following along well, but your video has actually opened my eyes more and I understand so much more of why I doing what I'm doing, imstefa of just blindly following!
    Thank you.

    • @BekBrace
      @BekBrace  3 роки тому +1

      Thanks Aaron 🙏, this means a lot to me - Glad you found it useful 🙂

    • @ItumelengS
      @ItumelengS 2 роки тому

      same here, i have a clue of how it works now.

    • @BekBrace
      @BekBrace  Місяць тому

      I'm so glad that was useful

  • @eljesco8945
    @eljesco8945 3 роки тому +11

    Pycharm all day. This Fastapi crash course is by far the easiest and clearest intro explanation I've followed up to now. Thank you!

    • @BekBrace
      @BekBrace  3 роки тому

      PyCharm is great ! Thanks a lot El Jesco, I’m glad you found this course useful 🙂

    • @Babs42
      @Babs42 Рік тому +1

      Vim forever ;).

  • @marcus7387
    @marcus7387 3 роки тому +4

    Thank you so much sir, I didn’t find any FastAPI course on UA-cam - thanks a lot

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 3 роки тому +8

    Yes, what is concurrency. Thanks

    • @BekBrace
      @BekBrace  3 роки тому +4

      I’ll answer your question in a future separate video

  • @davidcostigan8816
    @davidcostigan8816 3 роки тому +5

    PyCharm and Atom - switched to VS Code lately and it's a smart IDE

    • @asha6175
      @asha6175 3 роки тому

      I hate pycharm

  • @julesrif
    @julesrif 3 роки тому +7

    VSC over here, excellent crash course, thanks a lot!

    • @BekBrace
      @BekBrace  3 роки тому

      Thank you, Julio - appreciate it 🙏

  • @techworld3043
    @techworld3043 3 роки тому +4

    Very high quality video .. Thanks for making this. Now i will watch all of your videos...

    • @BekBrace
      @BekBrace  3 роки тому

      Thank you Tech world 🙏🙂

  • @jimmyopot1972
    @jimmyopot1972 3 роки тому +8

    Really nice intro for Django developers

  • @mirakarous5896
    @mirakarous5896 3 роки тому +6

    VSCode is my fav, but I also use sublime text sometimes

  • @narutokun5093
    @narutokun5093 3 роки тому +2

    the best FastAPI course on UA-cam hands down !!! bless you man !

  • @johnc5258
    @johnc5258 2 роки тому +1

    im blown away. starting to hate myself for loving things getting easier and easier. im such a lazy programmer lololo

    • @BekBrace
      @BekBrace  2 роки тому +1

      We're all lazy programmers 😂

    • @johnc5258
      @johnc5258 2 роки тому

      @@BekBrace that was an awesome intro to FastAPI. i'm even interested in a FARM stack (coming from basic bootstrap and postgre)

  • @juanmanero4631
    @juanmanero4631 3 роки тому +3

    Seriously man, this is one of the best fastapi crash courses on youtube and I am surprised your channel doesn't get a descent amount views and subscribers while other undeserved do !!! Thanks Bek and keep it going man

  • @glennmilsap7467
    @glennmilsap7467 3 роки тому +6

    Awesome tutorial! Easy to follow , to the point, simple examples and yet thorough. Thank you.

    • @BekBrace
      @BekBrace  3 роки тому

      Thank you, Glenn 🙏

  • @avinashpatel6745
    @avinashpatel6745 3 роки тому +2

    Sir, not only you teach well but your video editing and thumbnail designing skills are GREAT !
    I use VS Code.

  • @Çalhanoğluuuu
    @Çalhanoğluuuu 3 роки тому +4

    Vscode and sublime text.. Thanks for this video.. Excellent explanation 👍

    • @BekBrace
      @BekBrace  3 роки тому +1

      Thank you, Ajmal 🙏

  • @DeLaCruzer11
    @DeLaCruzer11 Рік тому +2

    Good tutorial. I want to thank you also for taking the effort of increasing the font size of the codes so that we can all read the code easily. Other tutorial videos won't even bother to do that. It's hard to read the code that one just gives up!. You won't get anything out of it if you can't even see the code and it just add another layer of difficulty in the learning process. Again great job for your tutorial videos!

    • @BekBrace
      @BekBrace  Рік тому

      Thank you very much 🙏 Glad you liked the tutorial 🙂

  • @ronaldronald8819
    @ronaldronald8819 3 роки тому +5

    That was a real jump start tutorial. Thanks!
    btw i use vs-code. If you like to do a course on the whole stack react and mongodb that would be so excellent.

    • @BekBrace
      @BekBrace  3 роки тому +2

      Thanks a lot Ronald 🙂
      Actually I am currently preparing a full tutorial on the FARM stack ( FastAPI - React - MongoDB) 👍

  • @melund
    @melund Рік тому +1

    Glad I came over this course. GREAT! I'm using Pycharm!

  • @zameerahmed1775
    @zameerahmed1775 Рік тому +1

    Fantastic video ............... Keep up the good work.
    God bless

    • @BekBrace
      @BekBrace  Рік тому

      Thank you very much my friend

  • @fbravoc9748
    @fbravoc9748 9 місяців тому +1

    Amazing crash course!!! Thanks!!

    • @BekBrace
      @BekBrace  9 місяців тому

      Thank you very much 🙏😊

  • @gerardmunoz6075
    @gerardmunoz6075 3 роки тому +3

    what is async/await ?

    • @BekBrace
      @BekBrace  3 роки тому

      Take a look to my series of simplified concepts in python, I talked about the asyncio library :)

  • @spoonikle
    @spoonikle 7 місяців тому

    the docs page is a really great dev aid

  • @brainscott
    @brainscott 3 роки тому +2

    WSL 2 is a good Terminal with Ubuntu so you have all the right tools

  • @moshawa588
    @moshawa588 2 роки тому +1

    Always nice to find a hidden gem channel, great content

    • @BekBrace
      @BekBrace  2 роки тому +1

      Thank you 😊 so much !

  • @strange_man
    @strange_man 3 роки тому +1

    I am happy to come across with this video :) have been planning to start till today :) thank you. I would like to see more of FastAPI tutorials from you.

    • @BekBrace
      @BekBrace  3 роки тому +1

      Thank you Ulvi, and you are very welcome, friend

    • @BekBrace
      @BekBrace  3 роки тому +1

      Actually, there are a few FastAPI videos on the channel, and currently I'm preparing a FastAPI-VueJS Full-stack tutorial, probably will be uploaded by the end of the current month - stay tuned

    • @strange_man
      @strange_man 3 роки тому

      @@BekBrace FastAPİ + Vue 🥰 what i am looking for.
      I am looking forward seing your content

  • @ItumelengS
    @ItumelengS 2 роки тому +1

    What a nice introduction to FastAPI

    • @BekBrace
      @BekBrace  2 роки тому

      Thank you Eddy 🙏

  • @4things4you
    @4things4you 2 роки тому +1

    Thanks Sir ...getting clear in all endpoints

  • @KeyserTheRedBeard
    @KeyserTheRedBeard 2 роки тому +2

    exceptional content Bek Brace. I shattered that thumbs up on your video. Keep up the awesome work.

    • @BekBrace
      @BekBrace  2 роки тому

      Thanks a lot Keyser The Red Beard 🙂🙏

  • @onestopdatascience7810
    @onestopdatascience7810 Рік тому +1

    Loved this video clear and consize explanation. Keep up the good work. Thanks 👍

  • @fleboho
    @fleboho 3 роки тому

    This was straight to the point, a very neat introduction. Full crud. Loved it.

    • @BekBrace
      @BekBrace  3 роки тому

      Thank you Farsi, I’m glad you liked it 🙂

  • @badrinarayanans355
    @badrinarayanans355 Рік тому +1

    Good crash course to learn fastapi, and I'll prefer visual studio code the most!

  • @mohammadpakravan9516
    @mohammadpakravan9516 2 роки тому +1

    This video was amazing tnx body and keep it up

    • @BekBrace
      @BekBrace  2 роки тому +1

      Glad you liked it, Vampire 🧛‍♀️🙂

  • @lauranalo2254
    @lauranalo2254 3 роки тому +3

    Goroutines(Go) Vs Coroutines (fastapi)

  • @JOHNDOE-ky9wz
    @JOHNDOE-ky9wz 3 роки тому +2

    Thanks man for this course , i learned a lot , and also i always work with visual studio code

  • @duckyfoxy2939
    @duckyfoxy2939 2 роки тому

    Thanks for sharing the video with the world, it seems to be easy to get started with, and the documentation feature is really such a powerful tool.
    However, if others are confused, at around 38:00 minute mark, you say that the JSON data you put, needs to have an entry with "id" present. This is not correct, as you are already using the URL path to define which ID you are interacting with. Hence, all the body needs to be, is a JSON object with "Activity" - nothing more. I felt you emphasized it a bit too much - hence I got a little confused.
    Another thing that could be interesting, would be to mention how you can make the API respond with proper status codes, for example when the ID was not found during RUD actions.
    Other than that, flawless, simple approach to a simple API. Thanks a bunch!

  • @jeanleloup2205
    @jeanleloup2205 3 роки тому +2

    I use visual studio code very often

  • @chrisogonas
    @chrisogonas Рік тому +1

    Good stuff! I love FastAPI.

  • @yourdadsbestfriend7101
    @yourdadsbestfriend7101 3 роки тому +2

    why did we install starlette? i dont recall using it?

    • @BekBrace
      @BekBrace  3 роки тому +1

      We installed Starlette [ which is a web framework that uses Uvicorn ASGI server ] because FASTAPI uses Starlette - so Starlette is the heart of speed & performance in FASTAPI, also Starlette helps you to build web apps with routing to different pages

    • @yarmik3d
      @yarmik3d 3 роки тому

      @@BekBrace You don't need to install Starlette separately, it is installed together with FastAPI.

    • @BekBrace
      @BekBrace  3 роки тому

      @@yarmik3d Yes, it's true - Thank you Yaroslav

  • @jokertdm1688
    @jokertdm1688 2 роки тому +2

    Great bro :)

    • @BekBrace
      @BekBrace  2 роки тому +1

      شكرا اخى الكريم

  • @SilverLake.
    @SilverLake. Рік тому +2

    I have created localhost from Docker image. Can FastAPI be used with docker image localhost environment?

  • @new.one1886
    @new.one1886 2 роки тому +1

    انت مبدع استمر

    • @BekBrace
      @BekBrace  2 роки тому +1

      شكرا صديقي 👍

  • @martincronje5242
    @martincronje5242 10 місяців тому

    I did this course really fast.

    • @BekBrace
      @BekBrace  10 місяців тому

      Great to hear, thank you for watching 🙂

  • @yukinorhiko7388
    @yukinorhiko7388 3 роки тому +2

    Always vscode, very comfortable

    • @BekBrace
      @BekBrace  3 роки тому

      I feel the same with vscode

  • @123arskas
    @123arskas Рік тому

    Loved it. I was hoping you'd give us FARM and I saw you already have done that. Amazing work

    • @BekBrace
      @BekBrace  Рік тому +1

      I am humbly accepting the fact that I was the first on UA-cam to create a FARM stack course, and it's even on FreeCodeCamp :) Thank You for watching

    • @123arskas
      @123arskas Рік тому

      @@BekBrace I believe you coined the term too.

  • @luizferez89
    @luizferez89 3 роки тому +2

    I like atom but it doesn’t work ok anymore. now I use visual studio code

    • @BekBrace
      @BekBrace  3 роки тому

      Used to work with atom too for a while

  • @yourdadsbestfriend7101
    @yourdadsbestfriend7101 3 роки тому +1

    spectacular!

    • @BekBrace
      @BekBrace  3 роки тому

      Thank you so much 🙏

  • @sasanvahidinia3929
    @sasanvahidinia3929 Рік тому +1

    Great tutorial! Is there any bigger FastAPI (like an advanced one or something) on the way? that'd be awesome!

    • @BekBrace
      @BekBrace  Рік тому +2

      Thank you.
      A standalone no, but I'm preparing a big project taking vue js , fastapi, docker and authentication all in one application.

  • @jaimedpcaus1
    @jaimedpcaus1 2 роки тому +2

    Could you create one video that returns a dB model? Thanks

    • @BekBrace
      @BekBrace  2 роки тому +1

      Have you checked my FARM stack course ?

    • @jaimedpcaus1
      @jaimedpcaus1 2 роки тому +1

      @@BekBrace OH no, have not but will try to review. 🙂

    • @BekBrace
      @BekBrace  2 роки тому +1

      @@jaimedpcaus1 this is a course showing how fastapi - mongodb - react can work together / you'll find it in fullstack playlist 🙏🙂

    • @jaimedpcaus1
      @jaimedpcaus1 2 роки тому

      @@BekBrace 🙂 OH ths. I will go and find it. Thank you and have a great day.

  • @jclm1rt
    @jclm1rt 2 роки тому +1

    Nice video!!

  • @shobhitkumar9664
    @shobhitkumar9664 2 роки тому

    What will be the changes in the code if body contains more than 1 property, right now we have one "Activity". Thanks.

  • @thetechtimes
    @thetechtimes 3 роки тому

    Awesome tutorial dude!!

  • @newtonbuyi2095
    @newtonbuyi2095 Рік тому

    Great tutorial, very concise explanations. Could you please advise on what we need to change in the model.py due to updated Pydantic ver 2.0 kicking errors. Thank you.

    • @BekBrace
      @BekBrace  11 місяців тому

      Thank you so much, I haven't actually checked out latest updates on Pydantic, as soon as I know, I will get back to you with a reply :)

  • @johncrunk8038
    @johncrunk8038 3 роки тому +4

    VSCode for the last two years. Also, never do anything in Python without pipenv.

  • @pawelsb
    @pawelsb 2 роки тому +1

    Great tutorial 💯 BTW which font you're using?

    • @BekBrace
      @BekBrace  2 роки тому

      Thank you Pawel 🙂 theme is called Material

    • @pawelsb
      @pawelsb 2 роки тому

      @@BekBrace Do checkout "Jellyfish Theme" you'll love it. BTW I was asking about the font you're using in vscode it's looking cool.

  • @riscaverse
    @riscaverse 3 роки тому +1

    Thank you for the excellent video. I use VSCode. I would like to see this code using React and deployed to a cloud host such as Google or Linode.

    • @BekBrace
      @BekBrace  3 роки тому

      Thank you 🙏 Riscaverse for your support - I’m preparing currently a tutorial for the FARM stack ( FastAPI - React - MongoDB )

  • @asha6175
    @asha6175 3 роки тому +2

    I work in visual studio code all the time

  • @arunima2916
    @arunima2916 2 роки тому

    Very useful, thank you so much!!

    • @BekBrace
      @BekBrace  2 роки тому

      Thank you my friend 🙏

  • @laTanabi
    @laTanabi 2 роки тому

    Very helpful tutorial. Thank you!

    • @BekBrace
      @BekBrace  2 роки тому

      That’s great!! Thank you, friend

    • @laTanabi
      @laTanabi 2 роки тому

      @@BekBrace Nagrywaj więcej materiałów :)

  • @kiran59345
    @kiran59345 3 роки тому +1

    Can you please show the same thing with a Database. Please do it with MongoDB. Or if you have already made a video or there any videos on the internet please share the link. Thank you :) (Vs Code btw). :)

    • @BekBrace
      @BekBrace  3 роки тому

      Hello 👋 Annabomina my friend - I just released a new course for FARM stack using FastAPI MongoDB and React JS 🙂 check out my last video, you’ll find it

    • @BekBrace
      @BekBrace  3 роки тому

      There it is : ua-cam.com/video/oGwszbCH5Z4/v-deo.html

    • @kiran59345
      @kiran59345 3 роки тому

      I’m working on Angular..!!

    • @kiran59345
      @kiran59345 3 роки тому

      Do u have the same thing with Angular instead of react..??

    • @BekBrace
      @BekBrace  3 роки тому

      @@kiran59345 no

  • @bjorncalbes7604
    @bjorncalbes7604 2 роки тому +1

    can you create a whole ecommerce site and web apps with fast and react?

    • @BekBrace
      @BekBrace  2 роки тому

      Yes definitely I can.
      Would you be interested in such tutorial ?

    • @bjorncalbes7604
      @bjorncalbes7604 2 роки тому

      @@BekBrace im watching yout farm stack video now, would love a more in-depth farm stack course ill pay for one and im sure others will also. there is no farm stack course out there yet

  • @haobamjameskumar3962
    @haobamjameskumar3962 2 роки тому

    could somebody tell me what's Fastapi is used for and how it is different from Django and which one is better for web app ?

    • @BekBrace
      @BekBrace  2 роки тому

      well, let me try to put it simply
      Fast API is a high-performance framework for building web apps with Python 3.6+ based on standard Python type hints. It is designed to be high performance and easy to learn, also FASTAPI enables you to use a REST interface to call functions to implement applications.
      Django is the most popular Python web framework, right ? It's a great framework that encourages rapid development (great for big projects because it has a lot of out-of-the-box tools and features).
      It follows a "batteries included" philosophy and ships with many tools that are needed by application developers such as ORM framework, admin panel , directory structure and more, you can check out my django projects for that.

  • @olivechevalier2896
    @olivechevalier2896 3 роки тому +3

    VIM

    • @natedrake3256
      @natedrake3256 3 роки тому

      Is VIM difficult ?

    • @BekBrace
      @BekBrace  3 роки тому

      VI is a code editor, but what do you use as IDE ?

  • @rangabharath4253
    @rangabharath4253 2 роки тому

    awesome

  • @Jochimin
    @Jochimin 3 роки тому

    NeoVIM !!!

  • @hamzaalarfaj6746
    @hamzaalarfaj6746 4 місяці тому +1

    ❤❤❤

  • @mayankjadhav4509
    @mayankjadhav4509 3 роки тому

    Why you are mentioning -> dict after a function?
    By default the function will return dictionary only.
    Could you please explain.

    • @BekBrace
      @BekBrace  3 роки тому +1

      Not for any reason but clarity, also you can think of it as a constraint enforcement from my side; the same thing for async/await code; the program will run fine without it - just to show different patterns and get used to typing such code / Thanks Mayank for your observation

    • @mayankjadhav4509
      @mayankjadhav4509 3 роки тому

      @@BekBrace Thank you for the clarification 🙌🏻

  • @tormentacristal
    @tormentacristal Рік тому

    I am using vscode

  • @djedankharkryonia4223
    @djedankharkryonia4223 3 роки тому

    I like VIM

  • @maulanasodiqin4360
    @maulanasodiqin4360 3 роки тому

    i use vim

  • @vladimirrumyantsev7445
    @vladimirrumyantsev7445 3 роки тому +1

    VS Code

  • @Lerklinten
    @Lerklinten 3 роки тому

    VSC

    • @Lerklinten
      @Lerklinten 3 роки тому

      Really good vids you are making- learning a lot

    • @BekBrace
      @BekBrace  3 роки тому

      Thank you, David, I’m glad to hear that

  • @jclm1rt
    @jclm1rt 2 роки тому +1

    vscode

  • @akinsholaakinniyi2717
    @akinsholaakinniyi2717 Місяць тому

    Who else is here from hng😂

  • @anounTT
    @anounTT 2 роки тому

    vscode