Upload file from stdin #38

merged 1 commit into from Feb 19, 2013

5 participants


This adds the ability to put a file from stdin using the following command syntax:


Unfortunately, the only way that I could find to do this without major refactoring is to buffer the entire chunk from stdin, so it may be a good idea to override the configured chunk size to the minimum 5MB. This is the first time I've written any python, so if you have any suggestions to improve this, they're more than welcome.


Amazing stuff. This works in practice for me. 👍

e2 commented Apr 30, 2012

I started implementing until I found this. Fantastic. Thanks!

@econnell econnell Merge pull request #1 from tomwilkie/master
Make it work on python2.4 again
s3tools member

I've pulled this (econnell/master) branch into a merge branch in my tree. Hopefully that'll help with an official upstream merge down the line...

s3tools member

In my merge branch, self.chunk_size was getting set a little too late, leading to a traceback reading it. I've moved that up now.

@mludvig mludvig merged commit 3677935 into s3tools:master Feb 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment