FastAPI – A python framework | Full Course

///FastAPI – A python framework | Full Course

FastAPI – A python framework | Full Course

FavoriteLoadingAdd to favorites

FastAPI is the fastest Python Web Framework
Let’s learn fastAPI by creating a full API for crud of blog with user authentication

FastAPI is using Pydantic library for types and starlette framework under the hood
FastAPI also provide amazing support for swagger API docs

Source code –

🌟 Course Contents 🌟
⏳ (00:00:00) Framework Intro
⏳ (00:04:51) Course Intro
⏳ (00:10:09) Install and Setup
⏳ (00:22:33) Break it down
⏳ (00:30:47) Path Parameters
⏳ (00:41:40) API Docs
⏳ (00:45:55) Query Parameters
⏳ (00:55:58) Request Body
⏳ (01:03:58) Debugging
⏳ (01:10:47) Pydantic Schemas
⏳ (01:19:59) Database Connection
⏳ (01:25:37) Create Model and Tables
⏳ (01:33:36) Store blog to database
⏳ (01:38:51) Get blog from database
⏳ (01:43:29) Exception & Status Code
⏳ (01:53:46) Delete a blog
⏳ (02:08:02) Response Model
⏳ (02:15:56) Create User
⏳ (02:23:07) Hash Password
⏳ (02:30:36) Show User
⏳ (02:35:05) Using Doc Tags
⏳ (02:37:58) Relationship
⏳ (02:51:13) API Router
⏳ (03:04:08) API router path operators
⏳ (03:07:24) Blog & User respository
⏳ (03:18:08) Logn & verify Password
⏳ (03:28:37) JWT Access Token
⏳ (03:36:24) Route behind authentication
⏳ (03:51:00) Deploy fastAPI app

There are many python web frameworks like Django and flask
But django and flask are python web frameworks that focus on serving files

This fastAPI, a python web framework is more focused on creating API with many modern features

Python fastapi is a true solution for your next big API project

🌟 Premium Courses 🌟
Check out 32 hours of Laravel Content at

🔥 DIGITAL OCEAN HOSTING Affiliate
Get $100 in credit for 60 days

🌟 Gadgets I use 🌟
Camera
Blue Yeti Mic
Blue Yeti Mic Foam Cover
Capture Card

🌟 Support Me ( I am full time youtuber) 🌟
Github
Patreon
Youtube

🌟 FOLLOW ME 🌟
Subscribe for New Releases!

Twitter –
Twitter –
Facebook –
Instagram –
(ask me questions!)

— QUESTIONS? —

Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Email me support@bitfumes.com
Thanks for all your support

source

By |2021-04-15T13:30:41+00:00April 15th, 2021|Python Video Tutorials|33 Comments

33 Comments

  1. Bitfumes April 15, 2021 at 1:30 pm - Reply

    Please like and comment which portion of this course you liked most

  2. STG×Brutal April 15, 2021 at 1:30 pm - Reply

    love u very much

  3. Erdal Ayan April 15, 2021 at 1:30 pm - Reply

    great work, thank you so much. I was wondering if there are detailed documentation about how to use "scopes" in fast api authentication… please feel free to share your posts about that too.

  4. tanvir ahmad April 15, 2021 at 1:30 pm - Reply

    doing all are fine

  5. Intraday Flamingo April 15, 2021 at 1:30 pm - Reply

    what os are you using?

  6. Solve Everything April 15, 2021 at 1:30 pm - Reply

    authentication is so annoying to implement. Why can't web browsers make it easier to develop auth stuff..

  7. Petrockspiracy April 15, 2021 at 1:30 pm - Reply

    this is probably an extremely dumb question but I don't know how the end product is useful i.e. how does it integrate with a website/server?

  8. oduber e. vasquez b. April 15, 2021 at 1:30 pm - Reply

    Excellent video, thank you very much! One question, How to get the active user, to associate it when creating a blog?

  9. Cepu Official April 15, 2021 at 1:30 pm - Reply

    Thank you very much for the awesome tutorial.. keep them coming please.. 😀
    May i request nginx, gunicorn, fastapi deployment?

  10. Burakhan Aksoy April 15, 2021 at 1:30 pm - Reply

    What extensions do you use for vscode? It looks pretty well

  11. Виталий Гречачин April 15, 2021 at 1:30 pm - Reply

    Hi! Great tutorial) Why you didn't use async in def functions like it was in Fast API tutorial?

  12. Daniel van der Wal April 15, 2021 at 1:30 pm - Reply

    Great content! And you really sound like the Indian version of Alecaddd 🤣

  13. Rakesh Bongi April 15, 2021 at 1:30 pm - Reply

    Best FastAPI Course in the world!

  14. Chandler Rosenthal April 15, 2021 at 1:30 pm - Reply

    in your example you hard coded user_id to be 1, what would be the correct way to make sure that when a user logs in that they only see the blogs associated with their user_id unless an admin?

  15. Arjay Villavicencio April 15, 2021 at 1:30 pm - Reply

    I am getting an error in this line of code:

    @app.put('/blog/{id}', status_code=status.HTTP_202_ACCEPTED)
    def update(id, request: schemas.Blog, db : Session = Depends(get_db)):
    db.query(models.Blog).filter(models.Blog.id == id).update(request, synchronize_session=False)
    db.commit()

    return 'updated'

    Result:
    AttributeError: 'Blog' object has no attribute 'items'

    I saw an alternative solution in the below comment that you have to put the raw update sql command for it to work. But doing this will beat the purpose of the framework.
    I hope that the creator will share a solution for this error.

    Solution by @telemahos

    from sqlalchemy.sql import text

    @app.put('/blog/{id}', status_code=status.HTTP_202_ACCEPTED)
    async def update(id, request: @t, db: Session = Depends(get_db)):
    query = text("""UPDATE blogs SET title=:title, body=:body WHERE id = :id""").params(title=request.title,body=request.body, id=id)
    db.execute(query)
    db.commit()
    return request

  16. Avinash Matani April 15, 2021 at 1:30 pm - Reply

    where can I find the blog databse file

  17. Aram B April 15, 2021 at 1:30 pm - Reply

    tnx for your gooooood tut 🙂

  18. Sany Ahmed April 15, 2021 at 1:30 pm - Reply

    The best tutorial of FastAPI, Awesome explanation, subscribed your channel 🙂

  19. Rihab Boussabeh April 15, 2021 at 1:30 pm - Reply

    thnx so much <3 i want to see What are the best practices for structuring a FastAPI project please? MVC

  20. _Arthur Lokhov April 15, 2021 at 1:30 pm - Reply

    What settings vs code do you use?

  21. Sourabh Mundada April 15, 2021 at 1:30 pm - Reply

    Django Social Media..
    Your Biggest Fan!
    Love From India…

  22. muco rolle April 15, 2021 at 1:30 pm - Reply

    What editor are you using? great content

  23. Tazim Rahbar April 15, 2021 at 1:30 pm - Reply

    Sir you haven't told some concept that how oauthpasswordbearer and oauthpasswordrequestfrom works. 😫😫

  24. Himanshu Tewari April 15, 2021 at 1:30 pm - Reply

    Hi, can you help me with this:
    Video @timing 2:04:06, while updating the blog I am getting an error:
    (Error):
    AttributeError: 'Blog' object has no attribute 'items'

    So I used:
    db.query(models.Blog).filter(models.Blog.id == id).update(dict(request))
    (or)
    db.query(models.Blog).filter(models.Blog.id == id).update({'title': request.title, 'body': request.body})

  25. Himanshu Tewari April 15, 2021 at 1:30 pm - Reply

    Hi, can you help me with this:
    Video @timing 1:57:57, while deleting the blog I am getting an error:
    Error message: raise LocalProtocolError("Too much data for declared Content-Length")
    h11._util.LocalProtocolError: Too much data for declared Content-Length

  26. Edgar Emilio Insfrán Cibils April 15, 2021 at 1:30 pm - Reply

    excellent contribution thank you very much !!!

  27. sium hossain 181-033 April 15, 2021 at 1:30 pm - Reply

    hat's off man!!!!!😍 But i hope this is not end game..😅upload more and more on fastApi

  28. Jonathan Nkurunziza April 15, 2021 at 1:30 pm - Reply

    I like this tuto just as much as I like the vueJs one. The only think that many youtubers have to take care is that to switch from dark to light mode is frustrating. Your browser should be in dark mode also or your IDE in light mode as your browser. Thank you!

  29. Anuj Choudhary April 15, 2021 at 1:30 pm - Reply

    As I am watching your content 1st time and it's really awesome. The way you explained every small thing in detail is too good. I have used Flask and Django both in my past and now I wanted to switch and after watching your video I have made my mind to use FastAPI. Thanks a lot for pushing this quality content and yes I am gonna hit that red and bell button.

  30. Prashant Rana April 15, 2021 at 1:30 pm - Reply

    async has come django 3.1

  31. Vishnu Gopireddy April 15, 2021 at 1:30 pm - Reply

    Awesome tutorial, I was looking exactly for the same. Thanks a lot. By the way what sort of theme and font are you using for your vscode??

  32. Jyotiranjan Jena April 15, 2021 at 1:30 pm - Reply

    what is the requirment of creating two virtual env

  33. John Smith April 15, 2021 at 1:30 pm - Reply

    what do you use to create that vs code animations/screen recording?

Leave A Comment

*