Python FastAPI Tutorial: Build a REST API in 15 Minutes
HTML-код
- Опубликовано: 31 май 2024
- 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
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.
Nice video, straight to the point, no fussing around, this channel deserves a subscription
Thank you!
Dudeeeeee. Your bite sized lessons are perfect! Awesome work, you're doing!
Thank you :) Glad you enjoy them!
nice voice, good content organization and good presentation.
thank you.
Thank you, I appreciate your comment!
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.
Thank you! Really makes me happy to hear that.
Nice video, straight to the point. Cover a lot in 15 min.
Fantastic tutorial, it's accessable and information dense with great coverage. Thank you!
very clear bro, nice work!
Thank you! Cheers!
Thank you! very nice explanation of FastAPI. Keep up the great work!
Glad you enjoyed it!
Brilliant tutorial!!! Thanks!
Glad it was helpful!
Nice beginner tutorial. Thank you!
Glad it was helpful!
Nice, simple easy to grasp
Glad it helped!
I like your videos! i'm learning python currently and NN architecture.
Glad you like them! Python is perfect for NN work.
Much needed one
My only critique: next.js is React with Nest, doesn't require an external API.
Fantastic intro video!
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).
@@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.
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.
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.
Fantastic tutorial! How do your JSON's look so good in your browser?
Easy! Just add a "JSON" extension to your browser. The one I'm using in Chrome is called "JSON Formatter".
this is a very cool python channel i am subscribed!
Thank you and welcome!
thaks
How can this be configured to run under IIS ?
Hmm, sorry I'm not familiar with how to use IIS :(