Skip to main content

Handle Amazon S3 PUT/DELETE/sign interactions

Project description

Objects / files can be put in S3 and deleted from S3. Also signed URLs can be generated to allow limited-time access to a particular object in an S3 bucket.

Requires Python 2.6 or above.

Available as Python package at http://pypi.python.org/pypi/pyawsbuckets

Usage

Initiate the access object with your credentials:

from pyawsbuckets import AwsInterface
aws_interface = AwsInterface(amazon_access_key, amazon_secret_key)

Put an object into S3:

aws_interface.put('https', 'bucket999', 'somefile.pdf', content)

Delete an object from S3:

aws_interface.delete('bucket999', 'somefile.pdf')

Get a signed URL which gives access to a private object, but only for (e.g.) 15 minutes:

expiring_url = sign_object_request('https', 'bucket999', 'somefile.pdf', 15)

Project details


Download files

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

Source Distribution

pyawsbuckets-1.0.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

pyawsbuckets-1.0.1-py2.6.egg (8.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page