openapi-python-sdk icon indicating copy to clipboard operation
openapi-python-sdk copied to clipboard

Async frameworks (aiohttp) incompatible due to blocking HTTP calls

Open francescobianco opened this issue 8 months ago • 2 comments

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.

francescobianco avatar Mar 18 '26 14:03 francescobianco

Hey @francescobianco

i recently made PR #14

Please check this out and let me know.

Deadpool2000 avatar Mar 25 '26 17:03 Deadpool2000

Thanks! @Deadpool2000

francescobianco avatar Apr 02 '26 07:04 francescobianco