Python FAST API Tutorial

Python FAST API Tutorial

FavoriteLoadingAdd to favorites

Welcome back to my channel! In this video, I will be showing you FastAPI which is a Python framework. As the name suggests, this allows us to make APIs in Python.

💻 Checkout Intel’s OpenVINO toolkit for FREE and start building and deploying AI/ML applications with the DevCloud for the edge! #sponsored

📄 Resources 📄
FAST-API Docs:
Fix Pip (Windows):
Fix Pip (Mac/Linux):

⭐️ Timestamps ⭐️
00:00 | Introduction
02:22 | FAST-API Advantages
04:49 | Installing FastAPI
06:26 | Writing Our First FAST-API API
10:58 | Running Our API
14:00 | What is an API
16:35 | JSON Explanation
18:16 | Creating More Endpoints & GET Method
19:19 | Path/Endpoint Parameters
27:19 | Query Parameters
35:19 | Request Body & POST Method
44:12 | PUT Method
50:42 | Delete Method
53:15 | Status Codes and Error Responses

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python:
👕 Merchandise:

🔗 Social Medias 🔗
📸 Instagram:
📱 Twitter:
⭐ Discord:
📝 LinkedIn:
🌎 Website:
📂 GitHub:
🔊 Podcast:

🎬 My YouTube Gear 🎬
🎥 Main Camera (EOS Canon 90D):
🎥 Secondary Camera (Panasonic Lumix G7):
📹 Main Lens (EFS 24mm f/2.8):
🕹 Tripod:
🎤 Main Microphone (Rode NT1):
🎤 Secondary Microphone (Synco Wireless Lapel System):
🎤 Third Microphone (Rode NTG4+):
☀️ Lights:
⌨ Keyboard (Daskeyboard 4Q):
🖱 Mouse (Logitech MX Master):
📸 Webcam (Logitech 1080p Pro):
📢 Speaker (Beats Pill):
🎧 Headphones (Bose Quiet Comfort 35):
🌞 Lamp (BenQ E-reading Lamp):
🌞 Secondary Lamp (BenQ Screenbar Plus):
💻 Monitor (BenQ EX2780Q):
💻 Monitor (LG Ultrawide 34WN750):
🎙 Mic Boom Arm (Rode PSA 1):
🎚 Audio Interface (Focusrite Scarlet 4i4):

💸 Donations 💸
💵 One-Time Donations:
💰 Patreon:
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
-Tech With Tim
– Fast API
– Fast API Tutorial
– Python API
– Python FastAPI Tutorial

⭐️ Hashtags ⭐️
#TechWithTiim #FastAPITutorial

source

By |2021-07-16T15:08:54+00:00July 16th, 2021|Python Video Tutorials|20 Comments

20 Comments

  1. Aman S July 16, 2021 at 3:08 pm - Reply

    hey tim, suppose if i wanna set the name to lowercase, i can do *if inventory[item_id]['name'] == name.lower():* but it doesn't work if i do not provide the query parameter, it gives an error like, "'NoneType' object has no attribute 'lower' ", how do i fix this?

  2. umyn channel July 16, 2021 at 3:08 pm - Reply

    thank's for providing a lot of information to us, but can you make a video on django rest api.

  3. thEtrigan July 16, 2021 at 3:08 pm - Reply

    i feel like this comments are fake cuz it dont even register the module

    dose it work on spyder? cuz it didnt for me

    it only worked for me on VS code plz help

  4. Drew drewprof July 16, 2021 at 3:08 pm - Reply

    Good vid Tim!

  5. venkata jagadeesh July 16, 2021 at 3:08 pm - Reply

    Atround 26:30 , I seriously wanted to see the code you wrote. But, your face occupied that portion of code

  6. Sangram Bhavar July 16, 2021 at 3:08 pm - Reply

    Hey Tim, How to connect 2 databases with FastAPI

  7. Dheeraj D July 16, 2021 at 3:08 pm - Reply

    Sir could you make a video on fastapi with sql database ?

  8. Op Con July 16, 2021 at 3:08 pm - Reply

    Just so you know, Django rest framework also has very strict validation capabilities

  9. curzzy_ July 16, 2021 at 3:08 pm - Reply

    How can i Setup my fastapi on a Webserver like flask with mod_wsgi? I will access my fastapi over the Internet from anywhere

  10. curzzy_ July 16, 2021 at 3:08 pm - Reply

    Pls make your cam in the top right corner and make it a bit smaler. The tutorial is very nice. When you have experience with flask fastapi is very easy to learn.

  11. samet öztürk July 16, 2021 at 3:08 pm - Reply

    @50:51 Tim forgot to type "from fastapi import Query" on top of the code.

  12. samet öztürk July 16, 2021 at 3:08 pm - Reply

    Hello Tim, nice tutorial. But at some parts, I couldn't see the code because of the portrait 😀 Are there any repo for this or something like that?

  13. Vivek Anand July 16, 2021 at 3:08 pm - Reply

    Just what I wanted to learn and that too in short n crisp (also enough detailed to get started). Thanks

  14. chuky pedro July 16, 2021 at 3:08 pm - Reply

    Thanks, @Tech With Tim

    link to the source code, please

  15. Michel Papi July 16, 2021 at 3:08 pm - Reply

    I love how Canadians say “about”

  16. Ayoub Abidi July 16, 2021 at 3:08 pm - Reply

    Finally, ma man did it! now we need a simple project using FastApi and PostgreSQL

  17. yotaaro July 16, 2021 at 3:08 pm - Reply

    thank you for your video tim,
    but at 26:01, can't see what you type there,,

  18. GT Cline July 16, 2021 at 3:08 pm - Reply

    Freddy VS JSON would truly be a horrific scene.

  19. Cheng Hui Chao July 16, 2021 at 3:08 pm - Reply

    I like Fastapi also Django, Iam looking for a combination of them.

  20. Josh Yorko July 16, 2021 at 3:08 pm - Reply

    Please run a full tutorial, something with the script running several different python scripts that perform some type of output. Also how would you convert a script that has argparse in it? Would you need to create apis for each separate argument parse?

Leave A Comment

*