openapi-python-sdk
openapi-python-sdk copied to clipboard
Async frameworks (aiohttp) incompatible due to blocking HTTP calls
Async frameworks (aiohttp) incompatible due to blocking HTTP calls
Description
The SDK uses blocking I/O, making it unsuitable for async frameworks like aiohttp.
Code snippet
import aiohttp
from openapi_sdk import Client
async def fetch():
client = Client("token")
return client.request("GET", base_url, "/advance")
Observed behavior
Blocks event loop.
Expected behavior
Async-compatible client or aiohttp support.
Hey @francescobianco
i recently made PR #14
Please check this out and let me know.
Thanks! @Deadpool2000