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

  • @sumanbanik3339
    @sumanbanik33393 жыл бұрын

    Yes, I needed it so badly, thanks mate. Keep up the great work..

  • @prettyprinted

    @prettyprinted

    3 жыл бұрын

    Glad it helped

  • @dixon1e
    @dixon1e3 жыл бұрын

    This is outstanding. Thank you for your excellent work.

  • @firdousbhat123
    @firdousbhat1232 жыл бұрын

    By looking at this I decided to update my FastAPI App. Thanks buddy :)

  • @birarakisarap
    @birarakisarap3 жыл бұрын

    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!

  • @miriamramstudio3982
    @miriamramstudio39823 жыл бұрын

    Very good video again. Thanks !!

  • @paco2997
    @paco29973 жыл бұрын

    Great content, a login/register/jwt fastapi video would be great

  • @alessandroferrari2166

    @alessandroferrari2166

    3 жыл бұрын

    yes! this please

  • @ajithshenoy5566

    @ajithshenoy5566

    3 жыл бұрын

    +1 please jwt session

  • @pratik_chuckles
    @pratik_chuckles2 жыл бұрын

    Please create a Playlist of all fastapi videos, thank you for your time, great content!

  • @mohanadgad669
    @mohanadgad669Ай бұрын

    nice!!

  • @Smoonwalkerm
    @Smoonwalkerm3 жыл бұрын

    Please add an example using many to many fields with Tortoise!!

  • @abdebek
    @abdebek3 жыл бұрын

    Great!

  • @rangabharath4253
    @rangabharath42533 жыл бұрын

    awesome

  • @FalseDev
    @FalseDev3 жыл бұрын

    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

  • @negoy100
    @negoy1003 жыл бұрын

    Can you record a video on OAuth 2.0 with Fast API?

  • @digitalboltwebdesign
    @digitalboltwebdesign3 жыл бұрын

    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

    @davidmuraya

    3 жыл бұрын

    Google Cloud

  • @TSalama7
    @TSalama73 жыл бұрын

    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

    @mikesturyan9

    3 жыл бұрын

    You can use unicorn or my preference is gunicorn with unicorn workers.

  • @firdousbhat123

    @firdousbhat123

    2 жыл бұрын

    @@mikesturyan9 I'm using the same.

  • @rahulkmail
    @rahulkmail3 жыл бұрын

    Can we use interface in FastAPI ? If yes then how can we do so ?

  • @robotframework101
    @robotframework1013 жыл бұрын

    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

  • @mikesturyan9
    @mikesturyan93 жыл бұрын

    I find it easier to use the encode httpx async client.

  • @hackwithharsha5228

    @hackwithharsha5228

    3 жыл бұрын

    Looks like it’s still in early version before considering for production grade applications..

  • @mikesturyan9

    @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

    @hackwithharsha5228

    3 жыл бұрын

    @@mikesturyan9 Thank you !! I will try to use it in some of my projects..

  • @manashejmadi
    @manashejmadi3 жыл бұрын

    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

  • @ruslankrivoshein2893
    @ruslankrivoshein28933 жыл бұрын

    "PyCharm" fucking yelds, when can't find session inside shutdown_event