Skip to main content

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

requests-awsv2-auth-1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

requests_awsv2_auth-1.0-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file requests-awsv2-auth-1.0.tar.gz.

File metadata

File hashes

Hashes for requests-awsv2-auth-1.0.tar.gz
Algorithm Hash digest
SHA256 008eb46430980fdfb28c5e4e7b6831feebd27e82ce405f5f955e344485bf9fa0
MD5 0567204b68d534b2ba4352fac6fc7d2a
BLAKE2b-256 f2bbf1a4331e5dfa80f4ba75f46e5a4f7d7705b209b52b6350f401cb5f098b5c

See more details on using hashes here.

File details

Details for the file requests_awsv2_auth-1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for requests_awsv2_auth-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 824ca8c63ad6f9e8c0c1e660c6229cfce9f7ae1d139c6302195ae845e913c0ae
MD5 b50181dc19149a023826f57c36be9186
BLAKE2b-256 20000ef3dc12cf04ef1132f3dbba26c583726b326ae85e4d158bab9e4401e496

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page