Skip to content

feat(python): Add streaming support for large HTTP responses #36

@zhexuany

Description

@zhexuany

Feature Request

Add streaming support to the Python HTTP client to avoid loading entire responses into memory.

Motivation

Currently, the entire HTTP response is loaded into memory. For large responses (e.g., when fetching large MCAP metadata or logs), this can cause high memory usage.

Proposed Solution

Add streaming support using requests.Response.iter_content() for sync client and aiohttp.content.iter_chunks() for async client.

Files to Modify

  • python/axon_client/axon_client/client.py
  • python/axon_client/axon_client/async_client.py

Priority

Medium - Nice to have for large data transfers

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpythonPython client code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions