Integrating AIOHTTP Into a FastAPI App
In this video I will show you how to make async requests in your FastAPI app using AIOHTTP. You'll see that it's easy to use just like Python Requests, even though there's a little more set up that needs to be done.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
Get the code here: prettyprinted.com/l/7i9
Twitter: / pretty_printed
Github: github.com/prettyprinted
Пікірлер: 35
Yes, I needed it so badly, thanks mate. Keep up the great work..
@prettyprinted
3 жыл бұрын
Glad it helped
This is outstanding. Thank you for your excellent work.
By looking at this I decided to update my FastAPI App. Thanks buddy :)
I was on reaserch on a similiar task for world cities and countries and i was thinking it with asyncio but not totally grabbed idea of what to pay attention. Thanks mate!
Very good video again. Thanks !!
Great content, a login/register/jwt fastapi video would be great
@alessandroferrari2166
3 жыл бұрын
yes! this please
@ajithshenoy5566
3 жыл бұрын
+1 please jwt session
Please create a Playlist of all fastapi videos, thank you for your time, great content!
nice!!
Please add an example using many to many fields with Tortoise!!
Great!
awesome
I'd use await asyncio.wait([city.get_current_time() for city in cities]) rather than making tasks and gathering them, other than that, awesome video
Can you record a video on OAuth 2.0 with Fast API?
I discovered fastapi a few months ago and started building some apps currently creating a saas app. Do you know how websites allow customers to map their custom domains to a service or have python work with cnames?
@davidmuraya
3 жыл бұрын
Google Cloud
Hey Anthony, mind releasing a video on how to deploy a fast api app? Is it a similar process to your flask deployment video from 4 years ago?
@mikesturyan9
3 жыл бұрын
You can use unicorn or my preference is gunicorn with unicorn workers.
@firdousbhat123
2 жыл бұрын
@@mikesturyan9 I'm using the same.
Can we use interface in FastAPI ? If yes then how can we do so ?
Will you also have a video about how to integrate a FastAPI app with a frontend framework (preferably Svelte, NOT React, Angular or Vue)? svelte.dev/ I'm still searching for the easiest tech stack for full stack web development. FastAPI looks really promising for the backend part - it's easy to learn and has the best documentation I've seen so far. Svelte might become it's companion for the frontend part(?) quote: "Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app. Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes." btw. Svelte is catching up fast - it has almost 40k Github stars Good starting points may be: - github.com/nsidnev/fastapi-realworld-example-app - github.com/sveltejs/realworld
I find it easier to use the encode httpx async client.
@hackwithharsha5228
3 жыл бұрын
Looks like it’s still in early version before considering for production grade applications..
@mikesturyan9
3 жыл бұрын
@@hackwithharsha5228 I've been using it in production for over 6 months and working with it for a year in non-prod. Outside of some api changes, it has been solid for my use.
@hackwithharsha5228
3 жыл бұрын
@@mikesturyan9 Thank you !! I will try to use it in some of my projects..
Hey! Can you show us a synchronous version of this and the asynchronous version side by side and show us where the performance increase happens? That'd be amazing
"PyCharm" fucking yelds, when can't find session inside shutdown_event