Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 1.0
2 Name: requests-aws
3 Version: 0.1.5
4 Summary: AWS authentication for Amazon S3 for the python requests module
5 Home-page: https://github.com/tax/python-requests-aws
6 Author: Paul Tax
7 Author-email: [email protected]
8 License: BSD licence, see LICENCE.txt
9 Description: #S3 using python-requests
10
11 AWS authentication for Amazon S3 for the wonderful [pyhon requests library](http://python-requests.org)
12
13 - Tested with python 2.6 and python 3.3.2
14 - At the moment only S3 is supported
15
16 ## Usage
17
18
19 ```python
20 import requests
21 from awsauth import S3Auth
22
23 ACCESS_KEY = 'ACCESSKEYXXXXXXXXXXXX'
24 SECRET_KEY = 'AWSSECRETKEYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
25
26 s = 'Sam is sweet'
27 # Creating a file
28 r = requests.put('http://mybuck.s3.amazonaws.com/file.txt', data=s, auth=S3Auth(ACCESS_KEY, SECRET_KEY))
29
30 # Downloading a file
31 r = requests.get('http://mybuck.s3.amazonaws.com/file.txt', auth=S3Auth(ACCESS_KEY, SECRET_KEY))
32 if r.text == 'Sam is sweet':
33 print "It works"
34
35 # Removing a file
36 r = requests.delete('http://mybuck.s3.amazonaws.com/file.txt', auth=S3Auth(ACCESS_KEY, SECRET_KEY))
37
38 ```
39
40 ## Installation
41 Installing requests-aws is simple with pip:
42
43 ```
44 $ pip install requests-aws
45 ```
46
47 [![Build Status](https://travis-ci.org/tax/python-requests-aws.png?branch=master)](https://travis-ci.org/tax/python-requests-aws)
48
49 Platform: UNKNOWN