Need more of these full length tutorials ❤️
fastapi + pydantic is a ultimate pleasure to work with.
One of the other major point about fast api is that it is built to support async out of the box. So if you have blocking IO calls inside your API logic(db calls, file system interaction, other API calls etc), using async will improve your performance even more. In simple terms usually when 1 thread of python server will handle 1 API request. With async it would be able to serve more requests. One major thing is that, make sure to use async specific db library, requests module, file io modules etc. Then only we will have this advantage
I'm a big fan of FastAPI. Thanks for doing this.
I don't know who needs to hear this but, take an hour to learn curl and you'll become much more efficient at testing servers
I would also love to see videos about the best ways to deploy such an application, how to scale it, etc.
It's a really nice and concise tutorial. For those who are struggling in list comprehension, part in the 'query_item_by_parametters()' function. What it does is, It's going through all the items in the global dictionary object items ( 2:17 ) and for each `item` it's calling 'check_item()' with the argument `item` if it returns true then the item added to the selection list object.( 9:29 )
Your persistance in consistent type fixing is marvelous
...and in 20 minutes you can learn 80% of what is needed to use FastAPI ! Great introduction ! I'm using FastAPI right now, and a lot of things about it are good, but, I've to say, I find the router pretty weak, compared to i.e. Pyramid, and also, something that bothers me are some of decision they made, i.e. HTTPBearer security scheme is returning 403 instead or 401 when not authenticated. Also, I find some things are really difficult with it (i.e. peeking request content before the endpoint, for i.e. logging). That said, the auto doc, async, and all bells and whistles are worth it, for the time being
10:09 - Not sure how yours ran, but `selection` wasn’t of type `Selection` (it’s a list comprehension), so the function type hint had to be modified to `-> dict [str, Selection | list [Item] ]` for me to run this code.
Good job Arjan, looking forward to watching this, loving the channel! <3
Have been recently playing around with flask and a little Django in the past. The learning curve and setup time is less steep with FastAPI. I like that templates (jinja2) can be added later.
I've been trying to learn Python. I started programming more than forty years ago, and while I'm not a professional developer, I have experience with a dozen or more programming languages, including C# and Perl (to me, Python seems like an illegitimate love child of those two parents). So... trying to learn Python. So many "intro to Python" videos provide the basics of programming along with the rudimentary structures of the language (formatted strings, getting input, etc.), and they're not useful to someone who can glance at a command, recognize its C roots, and move on without several minutes' discussion about how "print" puts a message on the console. This is the first video I've seen that outlines enough of the way a serious piece of software is written (data structures, function calls, API development, etc.) that it has been the most useful video on Python development I've watched. So thank you. I subscribed, am looking forward to more videos, and will refer back to this one a lot.
Will be very much helpful if you create a microservice series using fastAPI and django/ flask which can imetate the real life project scenario. So that we(entire ArjanCodes community) get to know better coding techniques as well as other understanding in details about that as well.
Cool video! Thanks! Would be nice to see video about integration FastApi and Dependency Injector, so interesting
Last year we ported our extensive Tornado based application to FastAPI. It was quite a learning experience. FastAPI really forced us to re-think some of our original customizations, but we ended up having full feature parity. Unfortunately we never managed to get it into production as the company eventually had to fold. You didn't even get to go into some of the neat tricks like Depends()! Future video? ;)
Another thanks for such quality content, that's really cool. Keep going, please.
In my current job we are developing a microsservice using fastapi, and everything is flowing nicely, in the next week the microsservice will gonna be deployed and if everything goes well we are gonna using for alot of things. Thanks for video, hope to see more fastapi around here
감사합니다.
@ArjanCodes