Amazon Simple Storage Service

Amazon S3 Library for REST in Python

Click for a printer friendly version of this document Printer Friendly Save to del.icio.us
 

A library in Python for working with the Amazon S3 REST interface.

Submitted By: EricW@AWS  
AWS Products Used: Amazon S3
Language(s): Python
License: New BSD

About This Sample

  • A library in Python for working with the Amazon S3 REST interface.
  • Part of a collection of interface libraries, each in a different language.
  • See the README file in the download for more information about the sample.

What's New?

  • 2007-11-05: Updates to support EU
  • 2007-05-18: Updates to support signed HTTP requests to virtual hosted buckets.
  • 2006-10-02: Updates for server access logging.
  • 2006-07-06: Fixed bug where modifications to the default headers argument in make_request would be sticky and would cause errors in subsequent calls.
  • 2006-06-28: Fixed query string authentication tests.

Prerequisites

Running the Sample

  • See the README file in the attached download for information on running the sample.

Discussion

The 5 most recent discussion messages. View full discussion.

A. Nelson
RealName(TM)
Posts: 13
Registered: 7/2/08
Re: Amazon S3 Library for REST in Python ++ ACL policy parsing and creation
Posted: Oct 8, 2009 12:40 PM PDT   in response to: Paul M.
 
  Click to reply to this thread Reply

Awesome Paul.

I'm considering this page to basically be dead - the AWS CMS is kind of ... not so great.

I moved the file where everybody can get at it, modify it, make tickets, etc....

http://github.com/AdamN/python-s3

A. Nelson
RealName(TM)
Posts: 13
Registered: 7/2/08
Re: Amazon S3 Library for REST in Python ++ ACL policy parsing and creation
Posted: Oct 19, 2009 1:16 PM PDT   in response to: Paul M.
 
  Click to reply to this thread Reply

Paul,

Can you clarify the addition of the copyright?

# (c) 2009 Tartan Solutions, Inc

This won't be usable on most libraries I'd like this integrated into if you're claiming copyright. It's fine, I just need to know so those changes aren't propagated to the GPL libraries that use s3.py.

Cheers,
Adam

A. Nelson
RealName(TM)
Posts: 13
Registered: 7/2/08
Re: Amazon S3 Library for REST in Python ++ ACL policy parsing and creation
Posted: Oct 28, 2009 8:51 AM PDT   in response to: A. Nelson
 
  Click to reply to this thread Reply

After careful consideration, I recommend all users use boto instead for a python s3 library as this library is no longer actively maintained:

http://boto.s3.amazonaws.com/index.html
http://code.google.com/p/boto/

It's not immediately obvious to a new Python user what to do when starting with S3 and Amazon Web Services, but boto is far and away the superior library.

J. Plush
RealName(TM)
Posts: 1
Registered: 4/24/10
Re: Amazon S3 Library for REST in Python ++ ACL policy parsing and creation
Posted: Apr 24, 2010 11:49 AM PDT   in response to: A. Nelson
 
  Click to reply to this thread Reply

does anyone know why I get this every other day during my nightly backups while using this script?

GENERAL EXCEPTION: [Errno 104] Connection reset by peer

I'm uploading a 2 GIG compressed file usin this code:

resp = conn.put(bucket_name, tarfile_name, S3.S3Object(filedata),
{'Content-Type': content_type})

adferouk
Posts: 12
Registered: 5/5/09
Re: Amazon S3 Library for REST in Python ++ ACL policy parsing and creation
Posted: Aug 19, 2010 11:52 AM PDT   in response to: A. Nelson
 
  Click to reply to this thread Reply

Thanks for the tip



Reviews
Create Review Write a Review
Be the first to review this.
Welcome, Guest Help
Login Login