Python FastAPI Tutorial: Build a REST API in 15 Minutes

  Рет қаралды 50,495

pixegami

pixegami

Күн бұрын

Learn how to install and build your first app with FastAPI (a high-performance web framework for Python).
In this tutorial, you'll learn how to instal FastAPI, and use it to create a new app. Learn how to define routes, handle errors, use request and path parameters, validating data with Pydantic models, modelling responses, and how to use the interactive documentation.
🔗 Code: github.com/pixegami/simple-fa...
🔗 FastAPI: fastapi.tiangolo.com/
📚 Chapters
00:00 Why Use FastAPI?
00:49 Install and Get Started with FastAPI
02:22 GET and POST Routes
05:27 Handling HTTP Errors
06:48 JSON Request and Path Parameters
10:38 Response Models
11:42 Interactive Documentation
13:31 FastAPI vs Flask
#pixegami #fastapi

Пікірлер: 48
@xsamueljr
@xsamueljr 10 ай бұрын
I literally just used FastAPI from reading the official documentation. I haven't even started the video, but I'm sure it will be perfect. Thank you.
@francescoanastasio2021
@francescoanastasio2021 5 ай бұрын
Nice video, straight to the point, no fussing around, this channel deserves a subscription
@pixegami
@pixegami 5 ай бұрын
Thank you!
@Sam-qf7hk
@Sam-qf7hk 6 ай бұрын
Dudeeeeee. Your bite sized lessons are perfect! Awesome work, you're doing!
@pixegami
@pixegami 6 ай бұрын
Thank you :) Glad you enjoy them!
@pablomunsey
@pablomunsey Ай бұрын
Very well explained and done; detail information is provided, and the pace is perfect (considering I can pause and rewind). High quality. I've seen some of your other videos, and your talented at teaching!
@user-cu7jf8fk4o
@user-cu7jf8fk4o 4 ай бұрын
Nice video, straight to the point. Cover a lot in 15 min.
@KoynoErikov
@KoynoErikov 4 ай бұрын
This really is one of the most useful and well structured tutorials (on any topic) I have ever seen. You have won yourself a big fan.
@pixegami
@pixegami 3 ай бұрын
Thank you! Really makes me happy to hear that.
@samvarcoe
@samvarcoe 4 ай бұрын
Fantastic tutorial, it's accessable and information dense with great coverage. Thank you!
@andresarmua
@andresarmua 4 күн бұрын
great video!!! nice examples and easy to follow!
@Andromeda26_
@Andromeda26_ 4 ай бұрын
Thank you! very nice explanation of FastAPI. Keep up the great work!
@pixegami
@pixegami 3 ай бұрын
Glad you enjoyed it!
@akosbalint3485
@akosbalint3485 5 ай бұрын
Nice beginner tutorial. Thank you!
@pixegami
@pixegami 5 ай бұрын
Glad it was helpful!
@JosephLiaw
@JosephLiaw 7 ай бұрын
very clear bro, nice work!
@pixegami
@pixegami 7 ай бұрын
Thank you! Cheers!
@nathanielvolk515
@nathanielvolk515 7 ай бұрын
Brilliant tutorial!!! Thanks!
@pixegami
@pixegami 7 ай бұрын
Glad it was helpful!
@Wandererr01
@Wandererr01 3 ай бұрын
Nice, simple easy to grasp
@pixegami
@pixegami 3 ай бұрын
Glad it helped!
@vandreazb1
@vandreazb1 28 күн бұрын
Thank you 😀😀
@Summer-of8zk
@Summer-of8zk 10 ай бұрын
I like your videos! i'm learning python currently and NN architecture.
@pixegami
@pixegami 10 ай бұрын
Glad you like them! Python is perfect for NN work.
@BlackSouL24
@BlackSouL24 10 ай бұрын
Much needed one
@allenplastic169
@allenplastic169 2 ай бұрын
nice voice, good content organization and good presentation. thank you.
@pixegami
@pixegami 2 ай бұрын
Thank you, I appreciate your comment!
@csIn84
@csIn84 6 ай бұрын
My only critique: next.js is React with Nest, doesn't require an external API. Fantastic intro video!
@pixegami
@pixegami 6 ай бұрын
That's true - although I think this more geared at people who want to build a back-end with Python. I still think NextJS is the best frontend for a Python API (even if it has its own backend capabilities).
@csIn84
@csIn84 6 ай бұрын
@@pixegami Obviously not understanding. If you want a "NextJS" feel in the front-end, go straight to React. If you want it to be more performant (and slightly less supported by targeted libraries), go with SolidJS. There's literally no reason to go with NextJS if you want a Python/C#/Java/etc. backend that isn't JavaScript based.
@gabrielshiu
@gabrielshiu 9 ай бұрын
Fantastic tutorial! How do your JSON's look so good in your browser?
@pixegami
@pixegami 9 ай бұрын
Easy! Just add a "JSON" extension to your browser. The one I'm using in Chrome is called "JSON Formatter".
@user-li2vo5md1d
@user-li2vo5md1d 12 күн бұрын
your video was great. i am interested to build sql database management server using fast api, could you provide it in the next your video? pleasee
@Sam-oi3hw
@Sam-oi3hw 2 ай бұрын
thaks
@ammadkhan4687
@ammadkhan4687 3 ай бұрын
is there any library which will help me create CRUD webapp. I tried streamlit but I update all the data which takes long. I want something event driven.
@pixegami
@pixegami 3 ай бұрын
There's limited options in Python right now. I think Django is probably the most popular end-to-end framework, but I don't like it because you can't run it serverlessly. I tend to just use a NextJS (or some other Javascript) frontend with my FastAPI.
@qazyhn94
@qazyhn94 8 ай бұрын
this is a very cool python channel i am subscribed!
@pixegami
@pixegami 8 ай бұрын
Thank you and welcome!
@kevinthomas3007
@kevinthomas3007 10 ай бұрын
How can this be configured to run under IIS ?
@pixegami
@pixegami 10 ай бұрын
Hmm, sorry I'm not familiar with how to use IIS :(
@thomaswahahauw560
@thomaswahahauw560 Ай бұрын
why are you using the terminal as wel ? cant you use the browser ?
@ryanperkins1525
@ryanperkins1525 Ай бұрын
you cut and paste a little bit too fast...
@pixegami
@pixegami Ай бұрын
I've received that feedback a few times, I'll try to slow it down a bit :)
@bharathsai8470
@bharathsai8470 Ай бұрын
arey erripooka first virtual environment create cheskomani cheppu, tala peekoni sachha
@somuega1683
@somuega1683 Ай бұрын
😂
@ketankumar5689
@ketankumar5689 Ай бұрын
it's okay bro..the purpose was to demonstrate rest api usage 😂. Control !
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 254 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 459 М.
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 43 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 133 МЛН
Huma Tariq Interview I Founder North Drive I K2preneur
15:20
Streamlit: The Fastest Way To Build Python Apps?
11:57
pixegami
Рет қаралды 86 М.
FastAPI Tutorial - Building RESTful APIs with Python
1:03:10
Amigoscode
Рет қаралды 235 М.
Tool Calling Agent Simplified (Langchain Tutorial)
25:51
Geraldus Wilsen
Рет қаралды 363
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 60 М.
Python RAG Tutorial (with Local LLMs): AI For Your PDFs
21:33
pixegami
Рет қаралды 172 М.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 155 М.
Top 6 Most Popular API Architecture Styles
4:21
ByteByteGo
Рет қаралды 867 М.
How to Use FastAPI: A Detailed Python Tutorial
20:38
ArjanCodes
Рет қаралды 223 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,3 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 43 МЛН