Skip to content

Async frameworks (aiohttp) incompatible due to blocking HTTP calls #5

@francescobianco

Description

@francescobianco

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.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions