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

Uploaded Source

Built Distribution

requests_awsv2_auth-1.1.3-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: requests-awsv2-auth-1.1.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.22.0 CPython/3.5.5

File hashes

Hashes for requests-awsv2-auth-1.1.3.tar.gz
Algorithm Hash digest
SHA256 44416611c417323ef1bd05641d83724df7363cabc5d8102d08e110fd32b64e89
MD5 c663f166b1f083dcb68f8b8a79c25ff1
BLAKE2b-256 6b2124a9aca3bdeee04f7b8a96a170bf47d3cba78a9f0e2423d07cf1d299ab06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: requests_awsv2_auth-1.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.22.0 CPython/3.5.5

File hashes

Hashes for requests_awsv2_auth-1.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b082ee657822bb79e87733c2af33f698c9bdc40c359917114b18bb4399bc7ca1
MD5 0e174b45c40d6f601088a8e6aaaeae9f
BLAKE2b-256 0252df7abdc6b171466aef2ae47b0dd8db381420626fd83bca327653340b75a2

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