AWS v2 auth support for Python-Requests.
Project description
AWS v2 signing support for Python-Requests.
Installation:
pip install requests-awsv2-auth
Usage:
import requests
from awsv2_auth import AwsV2Auth
auth = AwsV2Auth('my-key', 'my-secret')
response = requests.get('https://sos.exo.io/my-bucket',
auth=auth)
This can be used to generate pre-signed URLs as well:
auth = AwsV2Auth('my-key', 'my-secret')
url = auth.pre_sign('https://sos.exo.io/my-bucket/path/to/file.txt',
method='GET',
expires=int(time.time()) + 3600,
headers=None)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file requests-awsv2-auth-1.1.3.tar.gz.
File metadata
- Download URL: requests-awsv2-auth-1.1.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.22.0 CPython/3.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44416611c417323ef1bd05641d83724df7363cabc5d8102d08e110fd32b64e89
|
|
| MD5 |
c663f166b1f083dcb68f8b8a79c25ff1
|
|
| BLAKE2b-256 |
6b2124a9aca3bdeee04f7b8a96a170bf47d3cba78a9f0e2423d07cf1d299ab06
|
File details
Details for the file requests_awsv2_auth-1.1.3-py2.py3-none-any.whl.
File metadata
- Download URL: requests_awsv2_auth-1.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.22.0 CPython/3.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b082ee657822bb79e87733c2af33f698c9bdc40c359917114b18bb4399bc7ca1
|
|
| MD5 |
0e174b45c40d6f601088a8e6aaaeae9f
|
|
| BLAKE2b-256 |
0252df7abdc6b171466aef2ae47b0dd8db381420626fd83bca327653340b75a2
|