Skip to content

Instantly share code, notes, and snippets.

@steadicat
Created August 27, 2010 19:51
Show Gist options
  • Save steadicat/554053 to your computer and use it in GitHub Desktop.
Save steadicat/554053 to your computer and use it in GitHub Desktop.
conn = S3Connection(amazon_ID, amazon_KEY)
bucket = conn.get_bucket(bucketname)
k = Key(Bucket)
k.set_contents_from_filename(filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment