AWS Signature Version 4 signing for lowhaio
Project description
lowhaio-aws-sigv4 
AWS Signature Version 4 signing for lowhaio
Installation
pip install lowhaio lowhaio_aws_sigv4
Usage
The request function returned from lowhaio.Pool must be wrapped with lowhaio_aws_sigv4.signed, as in the below example.
import os
from lowhaio import Pool
from lowhaio_aws_sigv4 import signed
request, _ = Pool()
# A coroutine that returns a tuple a tuple of access key id, secret access
# key, any other headers, such as x-amz-security-token
async def credentials():
return os.environ['AWS_ACCESS_KEY_ID'], os.environ['AWS_SECRET_ACCESS_KEY'], ()
signed_request = request(
request, credentials=credentials, service='s3', region='eu-west-1',
)
code, headers, body = await signed_request(b'GET', 'https://s3-eu-west-1.amazonaws.com/my-bucket/my-key')
async for chunk in body:
print(chunk)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lowhaio_aws_sigv4-0.0.4.tar.gz.
File metadata
- Download URL: lowhaio_aws_sigv4-0.0.4.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c74db9b87520e706fe77a48147f9e0230c77504d530f9cc48516342bd135f3a0
|
|
| MD5 |
6473d54a64c2ac2f26c8b2c8e06d3ce7
|
|
| BLAKE2b-256 |
6105dfedb73db625b2e2b1320cfe8f2a99da0e403898d96eeb38d10e8b901f6b
|
File details
Details for the file lowhaio_aws_sigv4-0.0.4-py3-none-any.whl.
File metadata
- Download URL: lowhaio_aws_sigv4-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
930b1c62752ab993c5214b1b63ed38469e52e82b100359e21dff03c0f09569a5
|
|
| MD5 |
931c19f10479c00dd7e3397f4d762bfc
|
|
| BLAKE2b-256 |
48d81f787901ebb5f0313b4f1f711ddd99d23b031f4cacba01d3a65898bca28c
|