Skip to content

How would you use this for multiple remote files? #52

Answered by michalc
JTalarico asked this question in Q&A
Discussion options

You must be logged in to vote

Ah suspect it'll be the minio_resp.data... looking at https://min.io/docs/minio/linux/developers/python/API.html#get-object-bucket-name-object-name-offset-0-length-0-request-headers-none-ssec-none-version-id-none-extra-query-params-none, get_object returns a urllib3.response.HTTPResponse, and looking at https://urllib3.readthedocs.io/en/stable/reference/urllib3.response.html#urllib3.response.HTTPResponse.data, its .data property is a single bytes instance - so it would be all the bytes of the response, and in memory at once.

However, there is a stream function https://urllib3.readthedocs.io/en/stable/reference/urllib3.response.html#urllib3.response.HTTPResponse.stream that instead of a si…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@michalc
Comment options

@JTalarico
Comment options

@JTalarico
Comment options

@michalc
Comment options

Answer selected by JTalarico
@JTalarico
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants