Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A bare bones package for uploading to and downloading from AWS S3 from within Python 3.3+

Project Description


Work on this package has ceased. Development efforts have been moved to openS3.


To install the latest stable version of py3s3:

$ pip install py3s3

To install the latest development version:

$ git clone
$ cd py3s3
$ python install


>>> file_name = '/testdir/test.txt'
>>> file = S3ContentFile("My file's content", file_name, mimetype='')
>>> storage = S3Storage('file/name/prefix', 'my_bucket', AWS_ACCESS_KEY, AWS_SECRET_KEY)
>>> storage._save(file_name, file)
>>> new_file = storage._open(file_name)
>>> print(new_file.content)
My file's content


Before you can run the test suite, you will need to set the following environment variables:

export AWS_S3_BUCKET='<bucket name>'
export AWS_S3_ACCESS_KEY='<access key>'
export AWS_S3_SECRET_KEY='<secret key>'

Once the environment variables have been set, the test suite can be run with:

python test

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(371.6 kB) Copy SHA256 Hash SHA256
Source None Nov 23, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers