Can you use multi-page loading in boto with lines instead of a file handler?

Can I use S3 multi-page loading with lines instead of a file? The lines I use are generated during the download process, so the size and exact content are not known when starting a multi-page download.

+3
source share
1 answer

No upload_part_from_string method available. You can probably use StringIO to wrap a file-like object around a string and then pass this "upload_part_from_file", but I have not tested this.

It would be easy to add this method. At that time, I did not think that all this would be useful, since each part should be at least 5 MB, and this is a rather large line. But if you have a precedent for this, let me know. Or, fork boto on github, add a method and submit a port request.

+5
source

All Articles