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.

Files for requests-awsv2-auth, version 1.1.3
Filename, size File type Python version Upload date Hashes
Filename, size requests_awsv2_auth-1.1.3-py2.py3-none-any.whl (3.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size requests-awsv2-auth-1.1.3.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page