FastAPI Tutorial | FastAPI vs Flask

Поділитися
Вставка
  • Опубліковано 14 лип 2024
  • FastAPI is a Python based web framework that allows you to write backend server in a matter of minutes. It can be used as a general backend for any website or a way to deploy machine learning model in form of a REST api server.
    FaskAPI tutorials: fastapi.tiangolo.com/tutorial/
    Code: github.com/codebasics/py/blob...
    ⭐️ Timestamps ⭐️
    00:00 Introduction
    00:50 FaskAPI installation
    01:46 Simple hello world api server
    04:50 Passing parameters to api server
    06:01 GET, POST, PUT and DELETE in REST protocol
    06:52 FastAPI vs Flask: FaskAPI inbuilt validation (benefit # 1)
    12:51 Inbuilt documentation supporte (benefit # 2)
    15:14 Faster runtime performance (benefit # 3)
    15:32 Faster code development, few bugs (benefit # 4)
    15:54 Quick summary of why fastapi is better than Flask
    Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
    🌎 Website: www.codebasics.io/
    🎥 Codebasics Hindi channel: / @codebasicshindi
    #️⃣ Social Media #️⃣
    🔗 Discord: / discord
    📸 Instagram: / codebasicshub
    🔊 Facebook: / codebasicshub
    📱 Twitter: / codebasicshub
    📝 Linkedin (Personal): / dhavalsays
    📝 Linkedin (Codebasics): / codebasics
    ❗❗ DISCLAIMER: All opinions expressed in this video are of my own and not that of my employers'.

КОМЕНТАРІ • 67

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

    Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.

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

      Im using fastapi everything is working but im getting this error on endpoint requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8888): Max retries exceeded with url: /v1/MyModels/KAFDISEASEDETECTION:predict (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

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

      Any help please

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

    Best teacher in the UA-cam so far, very precise and crisp ... specially I liked the samosa part :)

  • @ajaykushwaha-je6mw
    @ajaykushwaha-je6mw 2 роки тому +13

    Amazing, kindly make full playlist of this.

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

    Your video are always easy to understand with great examples ♥💻

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

    Awesome video very well explained for someone like me from data science background

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

    Great video, thank you! Best wishes from Germany.

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

    Great video! Thank you for the great tutorial!!!

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

    Best tutorial for fast api will recommend to my folks

  • @jaysoni7812
    @jaysoni7812 2 роки тому +13

    Your ppt is amazing as always your ppt is far better than presentation of Google I/O, I'm requesting you please make a tutorial playlist for ppt skills, It would be better for us to learn amazing ppt skills from you ☺️
    And on your birthday party we want samosa party 😂

    • @codebasics
      @codebasics  2 роки тому +7

      Ha ha .. sure Jay :) I will make a video on effective ppt (at some point in the future). And yes next time I travel to India we can have a samosa and chai party together.. he he ... I will plan out a small meet up for all discord mentors :)

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

      @@codebasics sir how can I meet u through discord

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

    Informative, Thank you!

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

    fastAPI, the new revolution, a game changer.

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

    Waiting for this 🤗

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

    waoh.....what a nice stuff. you achieve a lot. truly it's fastapi.

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

    Thanks a lot! This is so helpful :)

  • @Akhildesignsbuddy
    @Akhildesignsbuddy 6 місяців тому

    True respect to you sir thank you for such a great video ❤😊

  • @Da-Bolt
    @Da-Bolt 12 днів тому

    thanks great help me lots

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

    very nice.
    many thank's

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

    Nice Explanation 👌👍

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

    02 Hours of content in 16 minutes 🎯.

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

    Great tutorial

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

    Thanks for the video.. I am following your all videos.. can I use Django instead of FastAPI as I have used django before in many projects

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

    great explanation

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

    Hello Sir, I have tried to implement Fast api n a very small linear algo for understanding purpose where I m getting 500 as Internal Server error. Can you kindly help me to solve this?

  • @UpendraKumar-zc8lm
    @UpendraKumar-zc8lm 2 роки тому

    Sir, please make complete tutorial on fast api...🙏🙏

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

    Great explanation sir, do you have course for Fast API?

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

    Thank you!!!

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

    Nice video, I like it.

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

    Hello ,
    thank you for the great video.
    Could you do a tutorial on how to work with muti tenant in fastapi... Some thing that do what django-tenant does.please.
    thank you

  • @auto-diciplime237
    @auto-diciplime237 Рік тому

    Thank very much for this great tutorial about fastAPI I'm a beginner in coding I have a question I want to create a website with html css and javascript in the website I want to change a prize of many items it's possible to create a API that can update de prise ?

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

    Sir please make full course on FASTAPI

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

    Please make a video which will covers all aspects of fastapi tutorial in hindi.

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

    Can we use both fast-api and django

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

    Hey there, where are you executing this uvicorn command to obtain the address? I'm working with FastAPI in a Jupyter Notebook. Do I need to use Powershell? Where are you launching this terminal window labelled as MinGW?"

    • @codebasics
      @codebasics  11 місяців тому +1

      That is called git bash. Just google it. you should be able to install it freely in 5 minutes. It provides you an ability to run linux commands on windows.

  • @bandhalaraja3481
    @bandhalaraja3481 2 місяці тому

    Amazing ... 🤩 Which is best framework for dashboard development work ? could you suggest me on this.

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

    Please help me explain meaning of endpoints..Why they are necessary??

  • @muhammad_mohsin_ali4070
    @muhammad_mohsin_ali4070 2 роки тому +6

    Which one is better django vs fast api???

    • @its_kumar
      @its_kumar 2 роки тому +10

      Django is for full big website and fastApi is only for APIs

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

      @@its_kumar Well said

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

    How can ı use MINGW64 command prompt to write this command ?

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

    Error loading ASGI app. Could not import module .

  • @ajaykushwaha-je6mw
    @ajaykushwaha-je6mw 2 роки тому

    Hi Mota bhai, everyone says tat in industry we create ML project in Pycharm or VS code using OOPs concept but there not a sing video on youtube for this. Kindly create a end to end project on this.

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

      yes I have an end to end deep learning project here: ua-cam.com/play/PLeo1K3hjS3ut49PskOfLnE6WUoOp_2lsD.html

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

    great video

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

    Is fastApi better than asp net web api?

  • @user-pj6im1qv6w
    @user-pj6im1qv6w 3 місяці тому

    what is the first interface i didn't reconise it

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

    should I use FastAPI in my Data Science workflow?

  • @tarunchoudhary-nx4eo
    @tarunchoudhary-nx4eo 10 днів тому

    Sir i am pursuing ai ml ,does i have to learn web development also

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

    Thanks

  • @user-pj6im1qv6w
    @user-pj6im1qv6w 3 місяці тому

    I have problem with python. I INSTALL IT 100 times it just don't work and I can't know the problem. pls help

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

    Will FastAPI beat Node.js ?

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

      May be it will because it is almost fast as nodejs

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

      Well, when it comes to web app development node.js is quite popular so if you are building a traditional app that doesn't have any data science or in general doesn't require using python ecosystem then I'd still prefer node.js (for various reasons).

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

      @@codebasics Can you state some of the reasons ? Even Python is popular like javascript.The main issue of async calls being resolved can't it beat node.js ? I am currently in a dilema of technology selection for back-end api development.I know python but I am new to js.

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

    Thank You Sir

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

    Second

  • @MOHDANAS-zc9cy
    @MOHDANAS-zc9cy 2 роки тому +1

    4th

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

    First