Skip to main content

lowhaio-aws-sigv4 CircleCI

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)

Metadata

Release files for lowhaio-aws-sigv4 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lowhaio-aws-sigv4 0.0.4
File Size Uploaded
lowhaio_aws_sigv4-0.0.4.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lowhaio-aws-sigv4 0.0.4
File Interpreter ABI Platform
lowhaio_aws_sigv4-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / lowhaio_aws_sigv4-0.0.4.tar.gz

Download URL lowhaio_aws_sigv4-0.0.4.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c74db9b87520e706fe77a48147f9e0230c77504d530f9cc48516342bd135f3a0
BLAKE2b-256 checksum
How to use checksums
6105dfedb73db625b2e2b1320cfe8f2a99da0e403898d96eeb38d10e8b901f6b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lowhaio_aws_sigv4-0.0.4-py3-none-any.whl

Download URL lowhaio_aws_sigv4-0.0.4-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
930b1c62752ab993c5214b1b63ed38469e52e82b100359e21dff03c0f09569a5
BLAKE2b-256 checksum
How to use checksums
48d81f787901ebb5f0313b4f1f711ddd99d23b031f4cacba01d3a65898bca28c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page