Create a Server

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

Related Articles

36 Comments

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

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

  3. 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 🙂

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

  5. 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. 😊

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

Leave a Reply