Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions