Snippets of the day – Friday, November 15, 2013

Posted on Posted in Snippets

orange-scissors-pen

Here are some of the most recently published snippets!

Amazon S3 Aws – connect_s3 method

This snippet is about the connect\_s3 method provided by python boto package.
The connect_s3 method can be invoked with or without aws secret and access keys. If param missing, default value None will be used.
**kwargs is used to pass a variable number of arguments to a function.

Path: [boto/\_\_init\_\_.py]

Focus on:
[S3Connection](http://www.snip2code.com/Snippet/5935/Amazon-S3-Aws—S3Connection-object-from)

Open the snippet

Author:    lbottaro @ Amazon_AWS_Python_API

Amazon S3 Aws – How to download a file from a bucket to a target directory

This code shows how to download a file from an existing bucket invoking the boto python API, saving to a target directory.
You need to specify the filename and path where to save the data.

[How to create a bucket](http://www.snip2code.com/Snippet/4892/Amazon-Aws-S3—Creating-a-bucket-in-pyt)
[How to upload a file to a bucket](http://www.snip2code.com/Snippet/4893/Amazon-AWS-S3—Uploading-a-file-to-a-bu)


Open the snippet

Author:    lbottaro @ Amazon_AWS_Python_API

See you soon!
The Snip2Code team

Leave a Reply

Your email address will not be published. Required fields are marked *