How To Create a Python API With FastAPI - Full Tutorial

  Рет қаралды 31,217

Tech With Tim

Tech With Tim

Күн бұрын

Host your API with Hostinger by going to: hostinger.com/TechwithTim and using my code TECHWITHTIM
In today's video I'm going to be showing you guys how you can create your own API using Python for web applications. API (application programming interface) essentially allows one piece of software to request data from another and receive a response.
If you want to land a developer job: techwithtim.net/dev
🎞 Video Resources 🎞
How to host this FastAPI: fastapi.tiangolo.com/vi/deplo...
Finished Code: github.com/techwithtim/Fast-A...
Fix Pip (MacOS): • How to Install Pygame ...
Fix Pip (Windows): • How to Install Pygame ...
⏳ Timestamps ⏳
00:00 | What is an API?
00:40 | CRUD
01:19 | Request/Response
01:38 | JSON
04:15 | FastAPI Overview
04:44 | Install/Setup
05:35 | Running FastAPI
09:00 | Pydantic Models
12:02 | Post Request
13:39 | Get Requests
15:57 | Path Parameters
17:45 | Put Requests
20:30 | Delete Requests
22:10 | Testing the API
23:41 | Small Fix To Delete Request
Hashtags
#api #pythonprogramming #techwithtim

Пікірлер: 47
@KayderimGameplays
@KayderimGameplays Ай бұрын
Thanks tim, i was having trouble with with this API thing, turned out much simpler than what i expected
@GeorgAubele
@GeorgAubele Ай бұрын
Great tutorial - thanks a lot!
@PythonDeveloper98
@PythonDeveloper98 Ай бұрын
Thankyou so much for video, Love from India❤❤❤
@iSteadyTech
@iSteadyTech Ай бұрын
To anyone seeing this comment, Just know you are capable of making it it's all on what you tell and teach yourself
@utrodus
@utrodus Ай бұрын
Thanks tim 🎉 you’re the best 😊
@SandyLearner
@SandyLearner Ай бұрын
Hi @Tim, Very much appreciated for putting such Project based videos on Python. A earnest Request can you post Python Automation for DevOps Automation with Microservice Dev. It's very rare in KZfaq to see such videos . Usage of adv 3rd party modules , Virtual Env for Task Automation 🎉🎉
@softwareengineer8923
@softwareengineer8923 10 күн бұрын
Awesome tutorial, always a pleasure to enhance coding skills by watching your videos.
@usamashami11
@usamashami11 Ай бұрын
Much needed 🥺
@user-ts9ks8in2n
@user-ts9ks8in2n Ай бұрын
Thank you Tim
@tameemalkhliefat3036
@tameemalkhliefat3036 Ай бұрын
Hi Tim this was an amazing video , is it possible to have some go-lang videos in the future ? you have a talent for teaching and i would love to learn more about go from you
@Sarvesh_Ganesan
@Sarvesh_Ganesan Ай бұрын
Hey Tim. Nice video! Is it possible for you to make a video on how to build agent frameworks from scratch using python?
@matiasbarrera6959
@matiasbarrera6959 Ай бұрын
Hi! Nice video!! Where do you recommend deploying a fastapi serverless? I tried vercel but its not very python friendly yet apparently. Thanks!! 😄
@IOSARBX
@IOSARBX Ай бұрын
Tech With Tim, Subscribed because your videos are always awesome!
@RishavKundu
@RishavKundu Ай бұрын
great video. just to note, imo you never want to set a root pass for your deployment. always always setup keys initially!! it'll save you the trouble down the line :)
@faru2301
@faru2301 Ай бұрын
Love from kerala 🌴🌴🌴🌴🌴🌴
@FayasNoushad
@FayasNoushad Ай бұрын
😌
@murshid956
@murshid956 Ай бұрын
Malayali 💜😇
@jebinshaju
@jebinshaju Ай бұрын
Malayaliiii
@lokranjanp3520
@lokranjanp3520 Ай бұрын
love to keralites from karnataka!
@IjasIjz
@IjasIjz Ай бұрын
😂
@basomiddin
@basomiddin Ай бұрын
Of course nice tutorial. However everyone would like to get information about templating like flask. Tim, I know you can make that kind of tutorials as well for your subscribers)))
@disispeter
@disispeter Ай бұрын
hey Tim just checking in for issues im having on my end as a new programmer learning python...I had fastapi imported and unicorn imported awhile ago following one of ur old videos, but apparently I was having trouble in the editor claiming module could not be found... so I spend 3 days learning how to properly setup a folder to organize files and learned how to setup venv and how to properly activate it just for ip link not to work in my browser...I haven't gotten past the 8:08 mark yet..I get it im a beginner and dont know how to setup everything up from scratch but im still trying
@ayushshende4290
@ayushshende4290 Ай бұрын
what db solution do you suggest using with fastapi, the docs have sqlAlchemy but they are suggesting to move to sqlmodel, if you can, please make a video integrating db as well.
@Anonymous-dy2te
@Anonymous-dy2te Ай бұрын
I finished the API, but instead of using an in-memory implementation, If you used any database. It's even a good project.
@valenciawalker6498
@valenciawalker6498 Ай бұрын
thanks
@adarmawan117
@adarmawan117 Ай бұрын
Hi, Tim Can you please make a video how to up this project online,? Thankss
@BorisHrzenjak
@BorisHrzenjak Ай бұрын
Hostinger is on the move :) I see them sponsoring almost all tech youtubers that I watch these days :D
@doggo104
@doggo104 Ай бұрын
Need the rest of the Rust series
@anonmyous.....
@anonmyous..... Ай бұрын
58 minute ago legit!
@ImAbuzarr
@ImAbuzarr Ай бұрын
Please create FastAPI complete tutorial
@francoisschoeman5350
@francoisschoeman5350 Ай бұрын
No database integration, auth, security, best practices, headers, form data, middleware, CORS, testing, project splitting or deployment. Nice video, but if you are including "Full Tutorial" in your title, make sure it's a full tutorial. 😊
@happydays334
@happydays334 Ай бұрын
Hey can you please make some NEAT implementation in python with pygame like a full series as many people are interested in machine learning
@timjames4306
@timjames4306 Ай бұрын
Please make a video on Django Rest Framework tutorial😊
@jigsaw2253
@jigsaw2253 Ай бұрын
There are in the channel
@enriquebruzual1702
@enriquebruzual1702 Ай бұрын
@19:43 "The method 'dict' in Class 'BaseModel' is depricated, use model.dump" = update_task = task.copy(update=task_update.model_dump(exclude_unset=True)) (pydantic: 2.7.1)
@oblivion7300
@oblivion7300 Ай бұрын
Is this an alternative to restful api? What ive
@aogunnaike
@aogunnaike Ай бұрын
Can authentication still be added?
@AjaySingh-xy9zq
@AjaySingh-xy9zq Ай бұрын
One video for how to deploy fast api
@sathishKumar-wb6sl
@sathishKumar-wb6sl Ай бұрын
Big thanks and much love from India. Please add JWT authentication to this code and upload part 2 of the same.
@therealbfg123
@therealbfg123 Ай бұрын
Me and Linode watching you cheat on us so easily 😢. Love your vids.
@IjazAhmad-wv9qx
@IjazAhmad-wv9qx 22 күн бұрын
Please share code also
@shafiullahptm909
@shafiullahptm909 Ай бұрын
Bro i challenge you to make a 3d game using ursina 😂 will you accept me😅
@ALGCoders
@ALGCoders Ай бұрын
🙂
@dev-akeel
@dev-akeel Ай бұрын
When will you complete creating these beginners tutorials? 😢😢 Can't we expect any little advanced level project/ content?
@dijei_fullfine
@dijei_fullfine Ай бұрын
Are u serious men?? I know how to use fastapi and I just did a quick overview, but why you don't have autocomplete for fastapi?? And python 3.9? C'mon Tim, I assume that you are busy but seeing how you have to type and guess HTTPException made me feel nervous
@putuadibrata
@putuadibrata Ай бұрын
first bro, pin me. pls
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 50 М.
Python FAST API Tutorial
58:20
Tech With Tim
Рет қаралды 319 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 110 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 11 МЛН
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 142 МЛН
5 Good Python Habits
17:35
Indently
Рет қаралды 400 М.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 150 М.
Python FastAPI Tutorial: Build a REST API in 15 Minutes
15:16
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 195 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 99 М.
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 564 М.
`const` was a mistake
31:50
Theo - t3․gg
Рет қаралды 123 М.
SWE Stop Learning - The Rise Of Expert Beginners
49:09
ThePrimeTime
Рет қаралды 244 М.
How to Use FastAPI: A Detailed Python Tutorial
20:38
ArjanCodes
Рет қаралды 215 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 110 МЛН