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
File details
Details for the file requests-awsv2-auth-1.1.1.tar.gz
.
File metadata
- Download URL: requests-awsv2-auth-1.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b740f10bc8b86e01d758d1ece00b1701f6e525e66902c36af41436fe81f9068 |
|
MD5 | 0aada0ce0d24011222c53a83f979185c |
|
BLAKE2b-256 | 0fe1849d7f67bcb53d162101ae6bad5a4e92e0dd95df1391675679988b4172ba |
File details
Details for the file requests_awsv2_auth-1.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: requests_awsv2_auth-1.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad346fbf85cb36d782e9b0e969f68b76a311fcbf4339fb67d7610ac7459198bf |
|
MD5 | 8ee009e9e17679419afb5ed3cccf249c |
|
BLAKE2b-256 | 4ca862453b2b1a00e5e07ff3e09dbf39a7833be7fb5c21333fec52a40ff34d5d |