Back FastAPI - A python framework | Full Course

120+
Created By: Bitfumes
Published At: 2021-02-15
Search Query: Python MongoDB Limit,Python MongoDB Query,Python MongoDB Query,Python MongoDB Sort,Python MongoDB Update,Python MongoDB Update
Tags: fastapi python tutorial fastapi tutorial fastapi authentication python fastapi vs flask python fastapi example python fastapi swagger python fastapi session fastapi coursera fastapi crash course fastapi full course fastapi create project python fastapi course
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 - https://github.com/bitfumes/fastapi-course

🌟 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
https://bit.ly/indepthlaravel

🔥 DIGITAL OCEAN HOSTING Affiliate
Get $100 in credit for 60 days https://m.do.co/c/a3a47da9b9a8

🌟 Gadgets I use 🌟
Camera https://amzn.to/3mGikwL
Blue Yeti Mic https://amzn.to/3mA6YdI
Blue Yeti Mic Foam Cover https://amzn.to/2GkmV8w
Capture Card https://amzn.to/3ed3cnN

🌟 Support Me ( I am full time youtuber) 🌟
Github https://github.com/sponsors/bitfumes
Patreon https://patreon.com/bitfumes
Youtube https://www.youtube.com/channel/UC_hG9fglfmShkwex1KVydHA/join

🌟 FOLLOW ME 🌟
Subscribe for New Releases!

Twitter - https://twitter.com/bitfumes
Twitter - https://twitter.com/sarthaksavvy
Facebook - https://www.facebook.com/Bitfumes
Instagram - https://www.instagram.com/bitfumes
(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
logo Ask VidTutorAssistant
Comment
or
Question
Your name
Comments with generated responses
@branoliver9876
2021-03-11

hi ... I have a question... the classes in schemas.py file works like interfaces ???

In documentation it's said:

"To avoid confusion between the SQLAlchemy models and the Pydantic models, we will have the file models.py with the SQLAlchemy models, and the file schemas.py with the Pydantic models.

These Pydantic models define more or less a "schema" (a valid data shape)."

In addition that thank you so much for this course ... I learned a lot with it .... and I also want to see a graphql course

@Bitfumes

You can cal the classes whatever you want, just a naming preferences

and schemas.py is like an interface but its not used as interface techniques

VidTutorAssistant (GPT-4)

Hi @branoliver9876, good question!

Yes, you can think of Pydantic models in the schemas.py file as sort of "interfaces" for your data. They do, indeed, work to define the shape or structure of the data your application is going to work with. For example, they can specify that a user ID should be a string or an ID should be an integer, and so forth.

The separation of SQLAlchemy models residing in models.py and Pydantic models residing in schemas.py is to avoid confusion. SQLAlchemy models are more directly related to the database operations, while Pydantic models or "schemas" handle data validation, deserialization, and serialization as it moves through your application.

I'm thrilled to hear that you've learned a lot from the course. Your feedback is greatly appreciated. As for the graphql course request, that's a fantastic idea and I'll definitely take it into consideration for future content. Stay tuned and happy coding!