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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | acae5356689a1b4dabbcb6d09720f390c0c003778df2835af8854ff7a87a730f |
|
MD5 | 8cca6c299f78d09dce5bed285f49b9fc |
|
BLAKE2b-256 | b79cee5957dd833ff1f11e53a53765d6987438aa2968e582582f000bb945f833 |
Close
Hashes for requests_awsv2_auth-1.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108fee58e76914bf4f1625d38e6c68332bd52b7a4a9ee894ee354adc2d0767e3 |
|
MD5 | b42c868aea2cff848dec00522847e2e6 |
|
BLAKE2b-256 | 72a2f4a3fc55cefdf0102b1c991aaf161ac496a7b528551e3f2d14348705123b |