FastAPI - A python framework | Full Course

preview_player
Показать описание
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

🌟 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

🌟 Gadgets I use 🌟

🌟 Support Me ( I am full time youtuber) 🌟

🌟 FOLLOW ME 🌟
Subscribe for New Releases!

(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.

Thanks for all your support
Рекомендации по теме
Комментарии
Автор

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

Bitfumes
Автор

I have never seen youtube content this detailed.
Most times when I start a course I stop halfway because I keep running into errors that the tutor didn't warn me about. But here, you've given every detail and made the learning process enjoyable.
Also, you have a very calming and reassuring voice.

Thanks for sharing.

Fae_Florence
Автор

I must say this is an excellent tutorial. I like the way you touched bases with all the basic concepts and I don't have to google around the technical jargons. Great job mate. Excellent quality stuff for an absolute beginner. I highly appreciate it. Cheers!

suyashsathe
Автор

This is the best API creating tutorial I have ever watch in my entire life, I just watch it for 4 hours straight, very helpful, easy to follow. Thank you so so much for your excellent work. Very appreciate it!

sonnguyenthanh
Автор

As a note I am 2 hours in right now and have a couple things to note:
1) This tutorial is very helpful. You are doing an awesome job explaining the content and I like that you show when you make a minor mistake.

2) If you have made it to the point that your are implementing update and delete and are watching your console as well as using the docs you have probably noticed that the console is throwing errors for these 2 functions. You are not crazy. Because we are running this with the --reload parameter the crashes are ignored and the page is instantly reloaded. You will notice that the actions are being executed properly and can be seen doing so in the docs and the database viewer. The crash is happening for a different reason on each function:

Delete - When using status code 404 your return message can have no body. What that means is when he is send a message "Blog successfully deleted", or whatever was written, it isn't actually able to be sent and is causing a crash (which is hidden by --reload). You can fix this by having your return statement say ->
return

Update - When using == id).update(request) you are saying to attempt and update every item that would be passed in the request. In doing this you allow it to attempt and change attributes that have no data or attributes that you may not think exist. This is what causes the crash here (again hidden by --reload). You can fix this with a minor change to the statement ->
== id).update(request.dict())

It is my belief that by specifying that you wish to update the request dictionary you are attempting to change only those items that have been specified in the request instead of writing over everything.

Again I really do love this tutorial and am learning a lot from this. I just wanted to help some people out because I know it was bothering me that I was seeing crash reports that weren't being shown on your side.

MrJP
Автор

You have very cool courses, I completed a whole course on Vue while filling a whole notebook with notes. This 10 hour course on Vue took me two months but it was a solid learning experience. Now I need an API to generate a list of books I have at home, so I will be learning FastAPI from your course. Greetings from Poland.

zombaju
Автор

Thank you so much for creating this course. This is truly amazing, especially where you go over the documentation and show how to find the neccecary information. Really enjoyed your course.

jkk-gc
Автор

Note that in order to enforce authentication in the entire sub route you can add to the APIRouter constructor instead of adding it individually to all the methods (which you may or may not prefer)

TonyUnderscore
Автор

this is the best video so far on youtube from someone who can actually present and speak

baloney_sandwich
Автор

Great tutorial, the best fastAPI one ive found so far. Clear explanations and talking through the actual documentation, which is excellent

jacoedp
Автор

You really love doing this, I can tell from how your voice starts out slow and your excitement increases as the section goes along. Qudos dude.

muslimspeakmy
Автор

This tutorial carried me through the whole time I have been trying to teach myself FASTAPI. Though I don't know if I can repeat everything I just did smoothly (Don't get me wrong I didn't do it in one go, took a week or soo), I know doing so would be less difficult. And I thank you so much for all the effort and time invested in here Sir🙏

zii_codes
Автор

Such a great quality content here!! Your channel is amazing, thanks a lot for these great videos!! Keep it up!!!

Marlem
Автор

Great job explaining all the concepts!!!! You make it very easy to pick up. Thank you so much for making the complex so

perceptron
Автор

This came at the right time, am halfway through the documentation and this video tutorial is really going to help, am planning to start using FastAPI for my IOT Application

jephtah
Автор

It's a premium course that you are providing free of cost, and every second of learning is love, Great video many thanks!!

poonamsaroj
Автор

Thank you man, you really helped me understanding the security part of the docs

marianozalazar
Автор

1 hr in and this tutorial is SO good. Please be my teacher for EVERYTHING ALWAYS!

serenalee-cultura
Автор

This was an excellent course. Thank you so much for making it. I like the exposure to pydantic the best.

JoshuaLerman
Автор

thanks, this is the best FastAPI course on YouTube right now. Full of actual examples, clear, detailes. Thank you!

alessandroferrari