A Python Library to Authenticate Request to the AWS API using the AWS Signatures
Project description
aws-sig
A Python Library to Authenticate Request to the AWS API using the AWS Signatures.
Features
- 🔒 AWS Signature Version 4 signing for
requestslibrary. - ⚡ Lightweight and fast.
- 📦 Simple integration with the requests
Installation
Install the package using pip:
pip install aws-signature
Usage
import requests
from aws_sig import SigV4
# Configure AWS credentials and region
aws_access_key = "your-access-key"
aws_secret_key = "your_secret_key"
aws_region = "your_region"
# Create an authenticated session
auth = SigV4(aws_access_key, aws_secret_key, aws_region, "execute-api")
# make signed request
response = requests.get("https://service-name.region.amazonaws.com", auth=auth)
print(response.json())
Project details
Release history Release notifications | RSS feed
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 aws_signature-1.0.0.tar.gz.
File metadata
- Download URL: aws_signature-1.0.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b70fa5d33dcd28b39af78c6d8c80d8a061729bab1664e8c1aae0f4c3ea3bf635
|
|
| MD5 |
65a5e51f375c024e5075a325f2354c07
|
|
| BLAKE2b-256 |
784bf45c87786e6d6081bbc1d983c49cbb5ba26558c8392fccccf2cc118af276
|
Provenance
The following attestation bundles were made for aws_signature-1.0.0.tar.gz:
Publisher:
publish.yml on fcusson/aws-sig
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aws_signature-1.0.0.tar.gz -
Subject digest:
b70fa5d33dcd28b39af78c6d8c80d8a061729bab1664e8c1aae0f4c3ea3bf635 - Sigstore transparency entry: 164423201
- Sigstore integration time:
-
Permalink:
fcusson/aws-sig@d0dbcf5b56781f24cf323c7909a8001ab69350f0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/fcusson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d0dbcf5b56781f24cf323c7909a8001ab69350f0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aws_signature-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aws_signature-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffc33e47253f410af6cf75d0a33f19d19a51ec781c692d91ecf5b6e2599475cb
|
|
| MD5 |
a6dc65f5406856943381785fdca8c76d
|
|
| BLAKE2b-256 |
4c45de51c116cfcbb06259a97dc6e1e37cfa62552d55e327d3208dd334cb14be
|
Provenance
The following attestation bundles were made for aws_signature-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on fcusson/aws-sig
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aws_signature-1.0.0-py3-none-any.whl -
Subject digest:
ffc33e47253f410af6cf75d0a33f19d19a51ec781c692d91ecf5b6e2599475cb - Sigstore transparency entry: 164423202
- Sigstore integration time:
-
Permalink:
fcusson/aws-sig@d0dbcf5b56781f24cf323c7909a8001ab69350f0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/fcusson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d0dbcf5b56781f24cf323c7909a8001ab69350f0 -
Trigger Event:
push
-
Statement type: