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

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions