Skip to content

avideci/fastAPI-aiohttp-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%