Skip to content

Instantly share code, notes, and snippets.

View canusx's full-sized avatar

Mustafa canusx

  • Özgür Yazılım Derneği
  • Istanbul
View GitHub Profile
@garnaat
garnaat / gist:2890351
Created June 7, 2012 17:48
Use the callback parameter to watch progress of an upload to S3 via boto
In [1]: import boto
In [2]: c = boto.connect_s3()
In [3]: b = c.lookup('stats.pythonboto.org')
In [4]: k = b.new_key('test1234')
In [5]: def mycb(so_far, total):
...: print '%d bytes transferred out of %d' % (so_far, total)