Install & Compatibility
Where this runs
tested against v1.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AwsRequestSigner
✓ from aws_request_signer import AwsRequestSigner
✗ from aws_request_signer import AWSRequestSigner
Initialize signer with credentials, region, and service; then sign a request to obtain signed headers.
import os
from aws_request_signer import AWSRequestSigner
# Set your credentials via environment variables
access_key = os.environ.get('AWS_ACCESS_KEY_ID', '')
secret_key = os.environ.get('AWS_SECRET_ACCESS_KEY', '')
region = 'us-east-1'
service = 'execute-api'
signer = AWSRequestSigner(access_key, secret_key, region, service)
# Example GET request
method = 'GET'
url = 'https://example.com/dev'
headers = {}
body = ''
signed_headers = signer.sign(method, url, headers, body)
print(signed_headers)
Upgrade
Version history
1.2.0latest on PyPI · released Feb 20, 2023
Audit
Dependencies
requestsrequiredUsed as the base library for signing HTTP requests
sixrequiredPython 2/3 compatibility layer