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

Large response handling causes high memory usage (PDF generation use case)

Open francescobianco opened this issue 8 months ago • 0 comments

Large response handling causes high memory usage (PDF generation use case)

Description
SDK loads entire response into memory, problematic for large files.

Code snippet

response = client.request(
    "POST",
    base_url,
    "/pdf",
    data=payload
)

print(len(response))

Issue
No streaming support (e.g. iter_content).

francescobianco avatar Mar 18 '26 14:03 francescobianco