Install & Compatibility
Where this runs
tested against v0.1.4 · 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.220s · 21.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.1s · import 0.198s · 22MB
20MB installed
● package 20MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SigV4Auth
✓ from httpx_auth_awssigv4 import SigV4Auth
✗ from httpx-auth-awssigv4 import SigV4Auth
Hyphenated package name in import is invalid; use underscores.
Initialize SigV4Auth with credentials and use it as HTTPX auth.
import os
from httpx import Client
from httpx_auth_awssigv4 import SigV4Auth
auth = SigV4Auth(
access_key=os.environ.get('AWS_ACCESS_KEY_ID', 'YOUR_ACCESS_KEY'),
secret_key=os.environ.get('AWS_SECRET_ACCESS_KEY', 'YOUR_SECRET_KEY'),
region='us-east-1',
service='execute-api'
)
with Client() as client:
response = client.get('https://example.amazonaws.com', auth=auth)
print(response.status_code)
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'httpx-auth-awssigv4'
Using hyphen instead of underscore in import statement.
fixUse `from httpx_auth_awssigv4 import SigV4Auth`.
TypeError: __init__() missing required positional arguments: 'access_key' and 'secret_key'
Credentials not provided to SigV4Auth.
fixProvide access_key, secret_key (and optionally session_token).
Upgrade
Version history
0.1.4latest on PyPI · released Apr 4, 2022
Audit
Dependencies
httpxrequiredRequired for making HTTP requests with AWS SigV4 auth