boto/boto — Issue #571: Allow to pass metadata into distribution.add_object()
Author: vsergeyev
Created: 2012-02-10 10:42:46+00:00
State: open

It may look like this

def add_object(self, name, content, headers=None, replace=True, metadata={}):
...
object = bucket.new_key(name)
if metadata:
for name, val in metadata.iteritems():
object.set_metadata(name,val)
...