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
Close
Hashes for requests-awsv2-auth-1.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44416611c417323ef1bd05641d83724df7363cabc5d8102d08e110fd32b64e89 |
|
MD5 | c663f166b1f083dcb68f8b8a79c25ff1 |
|
BLAKE2b-256 | 6b2124a9aca3bdeee04f7b8a96a170bf47d3cba78a9f0e2423d07cf1d299ab06 |
Close
Hashes for requests_awsv2_auth-1.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b082ee657822bb79e87733c2af33f698c9bdc40c359917114b18bb4399bc7ca1 |
|
MD5 | 0e174b45c40d6f601088a8e6aaaeae9f |
|
BLAKE2b-256 | 0252df7abdc6b171466aef2ae47b0dd8db381420626fd83bca327653340b75a2 |