Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install python-s3file

How to install python-s3file

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install python-s3file
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0
1.1Never BuiltWhy not?
1.0 Available View build log
0.1 Available View build log
Windows (64-bit)
1.0
1.1Never BuiltWhy not?
1.0 Available View build log
0.1 Available View build log
Mac OS X (10.5+)
1.0
1.1Never BuiltWhy not?
1.0 Available View build log
0.1 Available View build log
Linux (32-bit)
1.1 Available View build log
1.0 Available View build log
0.1 Available View build log
Linux (64-bit)
1.1 Available View build log
1.0 Available View build log
0.1 Available View build log
 
License
BSD
Dependencies
Imports
Lastest release
version 1.1 on Dec 22nd, 2012

Read and write files to S3 using a file-like object. Refer to S3 buckets and keys using full URLs.

More tests and docs are needed.

Requirements

boto

Usage

Basic usage:

from s3file import s3open

f = s3open("http://mybucket.s3.amazonaws.com/myfile.txt")
f.write("Lorem ipsum dolor sit amet...")
f.close()

with statement:

with s3open(path) as remote_file:
    remote_file.write("blah blah blah")

S3 authentication key and secret may be passed into the s3open method or stored in the boto config file.:

f = s3open("http://mybucket.s3.amazonaws.com/myfile.txt", key, secret)

Other parameters to s3open include:

expiration_days
Sets the number of days that the remote file should be cached by clients. Default is 0, not cached.
private
If True, sets the file to be private. Defaults to False, publicly readable.
content_type
The content_type of the file will be guessed from the URL, but you can explicitly set it by passing a content_type value.
create
New in version 1.1 If False, assume bucket exists and bypass validation. Riskier, but can speed up writing. Defaults to True.

Subscribe to package updates

Last updated Dec 22nd, 2012

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.