This adds the ability to put a file from stdin using the following command syntax:
s3cmd put - s3://BUCKET_NAME[/PREFIX]/FILENAME
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. 👍
I started implementing until I found this. Fantastic. Thanks!
Merge pull request #1 from tomwilkie/master
Make it work on python2.4 again
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...
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.