AWS authentication for Amazon S3 for the python requests module
Switch branches/tags
Nothing to show
Pull request Compare This branch is 64 commits behind tax:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

#S3 using python-requests

AWS authentication for Amazon S3 for the wonderful pyhon requests library

  • Tested with python 2.6
  • At the moment only S3 is supported


import requests
from awsauth import S3Auth


s = 'Sam is sweet'
# Creating a file
r = requests.put('', data=s, auth=S3Auth(ACCESS_KEY, SECRET_KEY))

# Downloading a file
r = requests.get('', auth=S3Auth(ACCESS_KEY, SECRET_KEY))
if r.content == 'Sam is sweet':
    print 'Hala Madrid!'

# Removing a file
r = requests.delete('', auth=S3Auth(ACCESS_KEY, SECRET_KEY))