AWS authentication for Amazon S3 for the python requests module
Switch branches/tags
Nothing to show
Latest commit 46f2e90 Aug 24, 2015 @tax Remove duplicate

#S3 using python-requests

AWS authentication for Amazon S3 for the wonderful pyhon requests library

Build Status

  • Tested with python 2.7 and python 3
  • At the moment only S3 is supported


import requests
from awsauth import S3Auth


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

# Downloading a file
r = requests.get(url, auth=S3Auth(ACCESS_KEY, SECRET_KEY))
if r.text == 'Lola is sweet':
    print "It works"

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


Installing requests-aws is simple with pip:

    $ pip install requests-aws