Registry / http-networking / httpx-auth-awssigv4

httpx-auth-awssigv4

JSON →
library0.1.4pypypi✓ verified 84d ago

A Python library that provides AWS Signature V4 authentication for HTTPX requests. Current version 0.1.4 supports IAM user credentials and STS temporary credentials. Release cadence is low; no recent updates.

pip install httpx-auth-awssigv4
INSTALL
IMPORT
SIG · HTTPX-AUTH-AWSSIGV
H
httpx-auth-awssigv4
http-networkingpythonv0.1.4
Install
2.1s avg
Import
209ms
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.220s · 21.8MB
glibc
py 3.103.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)
Debug
Known issues
gotchaThe library requires Python >=3.6.2 but no longer actively maintained; consider using `aws-sigv4` for httpx if updates are needed.
fix
Use aws-sigv4 package if newer features required.
affects: all
gotchaCredentials are passed as parameters; avoid hardcoding. Use environment variables or AWS credential providers.
fix
Use os.environ.get() or boto3 session.
affects: all
gotchaThe library does not support automatic credential chain resolution (e.g., from ~/.aws/credentials). You must supply keys explicitly.
fix
Provide access_key and secret_key explicitly.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'httpx-auth-awssigv4'
Using hyphen instead of underscore in import statement.
fix
Use `from httpx_auth_awssigv4 import SigV4Auth`.
TypeError: __init__() missing required positional arguments: 'access_key' and 'secret_key'
Credentials not provided to SigV4Auth.
fix
Provide 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
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
2
Resources
httpx-auth-awssigv4 — pip install httpx-auth-awssigv4 · libregistry