All Pro Web Designs > > Learning Tutorials > Programming Languages > Python > Python FAST API Tutorial
Video Title: Python FAST API Tutorial
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
api python
api python tutorial
API tutorial
auto completion
auto documentation
code suggestions
data validation
delete method
endpoints
fast api
fast api tutorial
fastapi
fastapi python
fastapi python tutorial
fastapi tutorial
installing fastapi
JSON
json explained
post method
put method
python api
python fast api
python fast api tutorial
python json
query parameters
tech with tim
tech with tim tutorial
what is api
what is json
Not sure if this will help but for 25:00 I ran into a long error when using None inside of the Path function. if you remove it and just use the description it worked for me. Love the tutorials tim!
Thank You Tim ,Great video I like the way how you used dictionary first then introduced classes
The file surface_area_sq_km.tsv contains data on the surface area, in km2
, of all countries
in the world, while the file forest_coverage_percent.tsv holds information on the forest
coverage percentage of these countries in the years 2009 and 2019. In these files, values
are separated by tabs (which are represented by a special character "t") and the first
row is a header. Countries appear by the same order in both files. Define the function
forest_coverage. This function takes as arguments the name of files, reads them and
returns a dictionary containing all countries and is structured as follows:
{ (…),
"Angola": {
"area": 1250000.0,
2009: {"coverage_percentage": 58.3, "coverage": 728750.0},
2019: {"coverage_percentage": 53.9, "coverage": 673750.0},
"growth": -7.55
}, (…),
"Gibraltar": {
"area": 10.0,
2009: {"coverage_percentage": 0.0, "coverage": 0.0},
2019: {"coverage_percentage": 0.0, 'coverage": 0.0},
"growth": "-"
}, (…) }
The "coverage" key represents the forested area in km2 computed from the "area"
and the "coverage_percentage". "growth" is the percentage of growth of forested
area since 2009 rounded to 2 decimal places. Note that all numbers in this exercise are
of float type (excluding year values).
Note: in case the forested area of a country in 2009 is 0.0, growth should be "-".
It is a nice tutorial. Thank you
Great Video Tim
"Hey everyone! I just wanted to share my experience with different code editors. I've tried various IDEs, including VS Code and Visual Studio,
and I ran into some issues that were frustrating to deal with. so its best to use sublime text like in the video
So in simple words, FastAPI it allows communication of the Backend with the Frontend? I understand correct?
lt and GT can you show the line u typed
I am running this examples on IDLE shell 3.10.2 and it always get this error: ModuleNotFoundError: No module named 'fastapi'. could you tell me what is wrong?. Thanks in advance
Hi, minute 35:30, I am stuck, why am I getting error Query is not defined? Any help will be appreciated .
To finally fix def get_item(…) put the following as the function body:
if item_id not in inventory:
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Item ID not found.")
return inventory[item_id]
By this there will be no server error anymore.
A little update for those watching in 2023, and have version 0.101.1, if you get the error "AssertionError: Path parameters cannot have a default value" when doing the Path, change None for …
It should look like this:
def get_item(item_id:int = Path(…,description="The id of the item.")):
if you have a problem with the update function try below code
def create_item(item_id: int, item: UpdateItem):
if item_id not in inventory:
return {'Error': 'item does not exist'
inventory[item_id].__dict__.update(item.dict(exclude_unset=True))
return inventory[item_id]
I am getting an error – AssertionError: Path parameters cannot have a default value for this line – def get_item(item_id: int = Path(None, description= "The ID of the item you would like to view")):
Tim, you're the best at what you do.
Please, keep it up because we need you.
The asterisk part just cracks me up. One of those things. Super great tutorial btw, thank you for taking so much time to make it high quality. Still holds up well 2 years later and that is hard to do nowadays.
Thanks Tim!
getting internal server error for query parameter
Thank you very much for this video. Just it would be nice if you add to name of video "+Swagger_UI". As I searched a lot for that and I found that it is included in this tutorial although you did not mentioned it! 🙂
Problem: I am on a mac and installed fastapi in the terminal and Requirement already satisfied was displayed, but when I tried to run the program 'import fastapi' in Visual Studio Code I get:
,line 1, in <module>
import fastapi
ModuleNotFoundError: No module named 'fastapi'.
This is frustrating since I follow exactly what is shown and discussed in the video AND my terminal says fastapi is installed.
I have gotten similar errors before: ModuleNotFoundError even though the terminal says the modules exist.
I think I am going to try some other tutorials outside Tech With Tim, even though I like Tim, since I get discouraged with such errors.
why my command prompt not finds my FAST-API file or directory? its installed together w the uvicorn…
great explanation
Great vid Tim! Thanks.
Thank you! Best video on APIs I have watched to date
could we get the cheat sheet for this tutorial please?
Hello, when I add default value "None" to Path method, the prompt said: AssertionError: Path parameters cannot have a default value
Thanks for precise and to the point explanation of FAST-API. It was nice leaning at this pace
just watched your flask restful api and this one, perfect !