Skip to content

About

How use fastAPI and an aiohttp client

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python

Full exemple of FastAPI with aiohttp

This an exemple with FastAPI but you can use this logic with any async ( ASGI ) web framework

Implemented logic :

(with a fake server mocking answer of aiohttp)

  • Open ClientSession at fastAPI startup

  • Close ClientSession at fastAPI shutdown

Tests

  • fastAPI endpoint test
  • aiohttp test

About

How use fastAPI and an aiohttp client

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages