AWS authentication for Amazon S3 for the wonderful [pyhon requests library](http://python-requests.org)
[](https://travis-ci.org/tax/python-requests-aws)
- Tested with python 2.7 and python 3
- At the moment only S3 is supported
## Usage
```python
import requests
from awsauth import S3Auth
ACCESS_KEY = 'ACCESSKEYXXXXXXXXXXXX'
SECRET_KEY = 'AWSSECRETKEYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
url = 'http://mybuck.s3.amazonaws.com/file.txt'
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))
```
## Installation
Installing requests-aws is simple with pip:
```
$ pip install requests-aws
```
Metadata
Release files for requests-aws 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| requests-aws-0.1.8.tar.gz | 5.6 kB | Without provenance | Details |
Release files / requests-aws-0.1.8.tar.gz
| Download URL | requests-aws-0.1.8.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd2e8386f09d94a84b9cad6e966b21f31493734336a8f47b9b535806949a771f
|
|
BLAKE2b-256 checksum How to use checksums |
5e2f4da17752036c04cf4c9af7a2da0d41ef2205043f1c61008006475aa24b8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for requests-aws 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.