All Projects → raphaelauv → fastAPI-aiohttp-example

raphaelauv / fastAPI-aiohttp-example

Licence: other
How to use and test fastAPI with an aiohttp client

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to fastAPI-aiohttp-example

TikTokDownloader PyWebIO
🚀「Douyin_TikTok_Download_API」是一个开箱即用的高性能异步抖音|TikTok数据爬取工具,支持API调用,在线批量解析及下载。
Stars: ✭ 919 (+1231.88%)
Mutual labels:  aiohttp, asgi, fastapi
inboard
🚢 Docker images and utilities to power your Python APIs and help you ship faster. With support for Uvicorn, Gunicorn, Starlette, and FastAPI.
Stars: ✭ 106 (+53.62%)
Mutual labels:  asgi, fastapi
fastapi-azure-auth
Easy and secure implementation of Azure AD for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.
Stars: ✭ 174 (+152.17%)
Mutual labels:  asgi, fastapi
fastapi-zeit-now
A simple example of deploying FastAPI as a Zeit Serverless Function
Stars: ✭ 24 (-65.22%)
Mutual labels:  asgi, fastapi
fastapi-project
FastAPI application without global variables(almost) =)
Stars: ✭ 26 (-62.32%)
Mutual labels:  asgi, fastapi
starlette-graphene3
An ASGI app for using Graphene v3 with Starlette / FastAPI
Stars: ✭ 52 (-24.64%)
Mutual labels:  asgi, fastapi
arel
Lightweight browser hot reload for Python ASGI web apps
Stars: ✭ 69 (+0%)
Mutual labels:  asgi, fastapi
serverless-mangum-examples
Example ASGI applications and Serverless Framework configurations using Mangum
Stars: ✭ 26 (-62.32%)
Mutual labels:  asgi, fastapi
hypercorn-fastapi-docker
Docker image with Hypercorn for FastAPI apps in Python 3.7, 3.8, 3.9. Ready for HTTP2 and HTTPS
Stars: ✭ 18 (-73.91%)
Mutual labels:  asgi, fastapi
msgpack-asgi
Drop-in MessagePack support for ASGI applications and frameworks
Stars: ✭ 100 (+44.93%)
Mutual labels:  asgi, fastapi
Python Slack Sdk
Slack Developer Kit for Python
Stars: ✭ 3,307 (+4692.75%)
Mutual labels:  aiohttp, aiohttp-client
cashews
Cache with async power
Stars: ✭ 204 (+195.65%)
Mutual labels:  aiohttp, fastapi
fastapi-debug-toolbar
A debug toolbar for FastAPI.
Stars: ✭ 90 (+30.43%)
Mutual labels:  fastapi
Frodo
python/fastapi + golang/gin + Vue + docker 基于异步技术栈的个人博客系统
Stars: ✭ 133 (+92.75%)
Mutual labels:  fastapi
prometheus-fastapi-instrumentator
Instrument your FastAPI app
Stars: ✭ 511 (+640.58%)
Mutual labels:  fastapi
Tokio
Asyncio event loop written in Rust language
Stars: ✭ 236 (+242.03%)
Mutual labels:  aiohttp
starlette-context
Middleware for Starlette that allows you to store and access the context data of a request. Can be used with logging so logs automatically use request headers such as x-request-id or x-correlation-id.
Stars: ✭ 320 (+363.77%)
Mutual labels:  fastapi
revolt.py
Python wrapper for https://revolt.chat
Stars: ✭ 58 (-15.94%)
Mutual labels:  aiohttp
Gidgethub
An async GitHub API library for Python
Stars: ✭ 226 (+227.54%)
Mutual labels:  aiohttp
Multidict
The multidict implementation
Stars: ✭ 225 (+226.09%)
Mutual labels:  aiohttp

Python

Full example of FastAPI with an aiohttp client

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

EXAMPLE FOR HTTPX

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].