Building A Simple REST API with FastAPI in Python

  Рет қаралды 46,779

NeuralNine

NeuralNine

Күн бұрын

Пікірлер: 35
@user-zlcksu4asdv
@user-zlcksu4asdv 2 жыл бұрын
Man, exactly what I was looking for. Implemented what I wanted in 5 minutes "while" watching your video! Thanks heaps!
@AnmolWanderer
@AnmolWanderer Жыл бұрын
What is your job role ?
@jacobwilsonmwale1674
@jacobwilsonmwale1674 8 ай бұрын
amazing tutorial👏👏. It has helped me understand a lot about fastapi. cheers mate🥂
@andrewmenshicov2696
@andrewmenshicov2696 3 жыл бұрын
i liked the tutorial but i think some of the code coulda been more thought through, like adding proper guard clauses, doctsrings and less ugly id usage 😅😅
@Hanson-e4m
@Hanson-e4m Жыл бұрын
I believe that you didn't consider problem with ID after deletion. If you remove something from the middle you will get bad indexes. Anyway thx for this video I find it's really useful.
@apraveena
@apraveena Жыл бұрын
Great tutorial, Thank you so much. I feel so confident in REST API now :)
@pedromiranda3148
@pedromiranda3148 2 жыл бұрын
I there!!! Great videos and great work. Just dropping suggestion of similar video with Django Rest library
@buixuanhung8273
@buixuanhung8273 3 жыл бұрын
i see your json file has been changed when you do add_person() part. I think you should change the code where you call people, you have to change it to people["people"] .
@FreakyStyleytobby
@FreakyStyleytobby 2 жыл бұрын
Great tutorial man, im grateful for your work here. Really concise vid.
@hfrog713
@hfrog713 Жыл бұрын
Also, for everyone.... Is there not a more efficient way of doing this? def search_provider(accepting: Optional[int] = Query(None, title="Accepting", description="Is the Doctor accepting new patients?"), gender: Optional[str] = Query(None, title="Gender", description="Gender of the Doctor")): accepting_providers = [p for p in providers if accepting.lower() == p['accepting']] if gender is None: if accepting is None: return providers else: return accepting_providers else: gendered_providers = [p for p in providers if gender.lower() in p['gender']] if accepting is None: return gendered_providers else: combined_condition = [p for p in accepting_providers if p in gendered_providers]
@gorge9774
@gorge9774 3 жыл бұрын
you're reading in my mind🤩
@Sam-tg4ii
@Sam-tg4ii Жыл бұрын
Thanks for the great explanation. I have one question. Imagine I have the data and the API code on a raspberry pi as a server. How can I give a client access to it over the internet? I mean, I need the client to be able for example to fetch data (get) either using the header method or preferrably the FastAPI's documentation interface that you showed here. Thanks
@hfrog713
@hfrog713 Жыл бұрын
is that a chrome extension for your json viewing?
@freepythoncode
@freepythoncode Жыл бұрын
Thank you so much 🙂❤
@RohitSaini-t4r
@RohitSaini-t4r Жыл бұрын
your intro is nice
@sushmita3537
@sushmita3537 2 жыл бұрын
just in case anyone's getting a TypeError: Object of type Person is not JSON serializable at add_person(), you need to do this json.dump(dict(people), f)
@gx3mz
@gx3mz 3 жыл бұрын
How about of make this api asynchronous? Is there any video you could recommend?
@kobakoba321
@kobakoba321 3 жыл бұрын
Read about graphene-python or ariadne graphql. Both are asynchronous but they are using GraphQL not REST
@vikashvashishat4011
@vikashvashishat4011 2 жыл бұрын
Hi! can you plz help to use postgres for data for the same
@pepecopter
@pepecopter Жыл бұрын
thanks that was great!
@hfrog713
@hfrog713 Жыл бұрын
does anyone know if there is a way to take the ID out of the sample when you "Try It out" since we are not assigning it back. I find it pretty confusing.
@MorrasAI
@MorrasAI 2 жыл бұрын
Dude this was fantastic ! Great Job.
@jairajsahgal5062
@jairajsahgal5062 3 жыл бұрын
Thank you
@rabibasukala7816
@rabibasukala7816 3 жыл бұрын
bruh
@kavitharajni8962
@kavitharajni8962 3 жыл бұрын
M
@ambivert_sigma_motivation
@ambivert_sigma_motivation Ай бұрын
Aw$m :)
@binkuspinkus8400
@binkuspinkus8400 3 жыл бұрын
First!
@disrael2101
@disrael2101 3 жыл бұрын
Make it with an actual project please
@jairajsahgal5062
@jairajsahgal5062 3 жыл бұрын
You can make this a project by taking a date from the user and returning interesting facts about that date.
@sportriot7440
@sportriot7440 3 жыл бұрын
Are you from Israel
@TheJackal917
@TheJackal917 3 жыл бұрын
Why Python's so slow?
@blazefirer
@blazefirer 3 жыл бұрын
its an interpreted language not compiled and there is threading but its kinda fake and there is not true concurrency in python
@Nicolas_Rangel
@Nicolas_Rangel Жыл бұрын
Fix for add_person(): ... people.append(new_person) people_write = {"people": people} with open("people.json", "w") as f: json.dump(people_write, f)
Multiplayer Tic-Tac-Toe Game in Python
28:14
NeuralNine
Рет қаралды 33 М.
🔴 FastAPI using Python -  Crash Course in Tamil
1:07:00
Anton Francis Jeejo
Рет қаралды 4,5 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 59 МЛН
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 49 МЛН
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 312 МЛН
FastAPI Tutorial - Building RESTful APIs with Python
1:03:10
Amigoscode
Рет қаралды 250 М.
Python FAST API Tutorial
58:20
Tech With Tim
Рет қаралды 340 М.
How To Create a Python API With FastAPI - Full Tutorial
25:39
Tech With Tim
Рет қаралды 50 М.
How to Use FastAPI: A Detailed Python Tutorial
20:38
ArjanCodes
Рет қаралды 253 М.
Python FastAPI Tutorial: Build a REST API in 15 Minutes
15:16
Data Classes in Python Are The New Standard
20:34
NeuralNine
Рет қаралды 67 М.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 167 М.
Creating APIs For Machine Learning Models with FastAPI
20:06
NeuralNine
Рет қаралды 21 М.
REST API Crash Course - Introduction + Full Python API Tutorial
51:57
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 59 МЛН