Get BytesIO / file-like content from response #3028
Replies: 2 comments
-
I think this is interesting, yep. We have this API because we took a design call (somewhere?) that the interface with However...
So... A sensible thing to do would be to investigate this further. An initial starting point would probably be implementing I'd be happy to help you or anyone else work through how to do this. I do think this probably makes sense, since we could add |
Beta Was this translation helpful? Give feedback.
-
The UK dbt made a wrapper for iterabales with httpx in mind https://github.com/uktrade/to-file-like-obj |
Beta Was this translation helpful? Give feedback.
-
I'm using
pandas.read_parquet
and I need to wrapcontent
in aBytesIO
like this:Is there a 'better' way to do this and / or could support for it be added?
I see Streaming responses, but it makes no mention of
BytesIO
🤔Beta Was this translation helpful? Give feedback.
All reactions