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.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

requests_awsv2_auth-1.1-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.1.tar.gz.

File metadata

File hashes

Hashes for requests-awsv2-auth-1.1.tar.gz
Algorithm Hash digest
SHA256 164dc04880e8bbc00e9134ef45c975be5b8e46d3a63b4a18cbc5be764502ee93
MD5 c81de6b7984bdc2ded04d156a876148c
BLAKE2b-256 f90e08aaf32823d0d3d1a2c6979dff98ff0be7402b04ec9a19a9ec651f533214

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for requests_awsv2_auth-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da9468d1fb2272e06917d7bbd77c672ea0032cc5cf3dd9618292b6ba78bdb560
MD5 2840e7b87ef6c8f7c8a7148cc17cbe02
BLAKE2b-256 05aedfbbabb5429ea6078a3b49a84e7a4ea773cfcb231e540b74aca05b0ea4a4

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