#python s3

Upload and Download files from AWS S3 with Python 3

If you are trying to use S3 to store files in your project. I hope that this simple example will be helpful for you.

Install Boto3 via PIP

Please take a look to the source code at https://github.com/thanhson1085/python-s3 before reading this post.

With boto3, It is easy to push file to S3. Please make sure that you had a AWS account and created a bucket in S3 service.

And it is not difficult to save file from S3 to local: