How To Create a Python API With FastAPI – Full Tutorial
How To Create a Python API With FastAPI – Full Tutorial
#Create #Python #API #FastAPI #Full #Tutorial
“Tech With Tim”
Host your API with Hostinger by going to: 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:
🎞 Video Resources 🎞
How to host this FastAPI:
Finished Code:
Fix Pip (MacOS):
Fix Pip (Windows):
⏳ 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
source
To see the full content, share this page by clicking one of the buttons below |
Big thanks and much love from India. Please add JWT authentication to this code and upload part 2 of the same.
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.
Great tutorial – thanks a lot!
Is this an alternative to restful api? What ive
Hey can you please make some NEAT implementation in python with pygame like a full series as many people are interested in machine learning
Need the rest of the Rust series
Thanks tim 🎉 you’re the best 😊
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)))
Much needed 🥺
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 🙂
@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)
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
One video for how to deploy fast api
I finished the API, but instead of using an in-memory implementation, If you used any database. It's even a good project.
Bro i challenge you to make a 3d game using ursina 😂 will you accept me😅
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 YouTube to see such videos . Usage of adv 3rd party modules , Virtual Env for Task Automation 🎉🎉
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. 😊
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
Hi! Nice video!! Where do you recommend deploying a fastapi serverless? I tried vercel but its not very python friendly yet apparently. Thanks!! 😄
Thank you Tim
When will you complete creating these beginners tutorials? 😢😢
Can't we expect any little advanced level project/ content?
Hostinger is on the move 🙂 I see them sponsoring almost all tech youtubers that I watch these days 😀
Me and Linode watching you cheat on us so easily 😢.
Love your vids.
58 minute ago legit!
Thankyou so much for video, Love from India❤❤❤
Tech With Tim, Subscribed because your videos are always awesome!
To anyone seeing this comment, Just know you are capable of making it it's all on what you tell and teach yourself <3
Hi, Tim
Can you please make a video how to up this project online,?
Thankss
thanks
Please create FastAPI complete tutorial
Thanks tim, i was having trouble with with this API thing, turned out much simpler than what i expected
Can authentication still be added?
Please make a video on Django Rest Framework tutorial😊
🙂
Love from kerala 🌴🌴🌴🌴🌴🌴
Hey Tim. Nice video! Is it possible for you to make a video on how to build agent frameworks from scratch using python?