How To Create a Python API With FastAPI - Full Tutorial

preview_player
Показать описание

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.

🎞 Video Resources 🎞

⏳ 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
Рекомендации по теме
Комментарии
Автор

Thanks tim, i was having trouble with with this API thing, turned out much simpler than what i expected

KayderimGameplays
Автор

I've had a really funny day at work. We have a K8S cluster set up and implemented a very basic CRUD structure using fastapi which creates or deletes argo workflows. The upper heads seem to love this idea, but one guy accidently ran a pipeline that generates thousands of workflows which brought down the entire cluster. You can also write a simple perl script to send an infinite amount of requests to burn down EVERY node and its cores in no time.

kimeg
Автор

To anyone seeing this comment, Just know you are capable of making it it's all on what you tell and teach yourself <3

inshallah_ali
Автор

Thankyou so much for video, Love from India❤❤❤

PythonDeveloper
Автор

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 🎉🎉

SandyLearner
Автор

That's really like Flask + RestX, but much more simpler, great tutorial

colinvon
Автор

Awesome tutorial, always a pleasure to enhance coding skills by watching your videos.

softwareengineer
Автор

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 :)

RishavKundu
Автор

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

tameemalkhliefat
Автор

Hey Tim. Nice video! Is it possible for you to make a video on how to build agent frameworks from scratch using python?

Sarvesh_Ganesan
Автор

Hi! Nice video!! Where do you recommend deploying a fastapi serverless? I tried vercel but its not very python friendly yet apparently. Thanks!! 😄

matiasbarrera
Автор

Tech With Tim, Subscribed because your videos are always awesome!

IOSARBX
Автор

very clear demonstration, could you make one with authentication?

Dr.FlyDog
Автор

Hostinger is on the move :) I see them sponsoring almost all tech youtubers that I watch these days :D

BorisHrzenjak
Автор

I finished the API, but instead of using an in-memory implementation, If you used any database. It's even a good project.

Anonymous-dyte
Автор

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.

ayushshende
Автор

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

disispeter
Автор

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)))

basomiddin
Автор

Hi, Tim
Can you please make a video how to up this project online, ?

Thankss

adarmawan
Автор

Is this an alternative to restful api? What ive

oblivion