Skip to main content

A Python Library to Authenticate Request to the AWS API using the AWS Signatures

Project description

aws-sig

PyPi version Code Coverage

A Python Library to Authenticate Request to the AWS API using the AWS Signatures.


Features

  • 🔒 AWS Signature Version 4 signing for requests library.
  • ⚡ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_signature-1.0.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_signature-1.0.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

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

Hashes for aws_signature-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b70fa5d33dcd28b39af78c6d8c80d8a061729bab1664e8c1aae0f4c3ea3bf635
MD5 65a5e51f375c024e5075a325f2354c07
BLAKE2b-256 784bf45c87786e6d6081bbc1d983c49cbb5ba26558c8392fccccf2cc118af276

See more details on using hashes here.

Provenance

The following attestation bundles were made for aws_signature-1.0.0.tar.gz:

Publisher: publish.yml on fcusson/aws-sig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for aws_signature-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffc33e47253f410af6cf75d0a33f19d19a51ec781c692d91ecf5b6e2599475cb
MD5 a6dc65f5406856943381785fdca8c76d
BLAKE2b-256 4c45de51c116cfcbb06259a97dc6e1e37cfa62552d55e327d3208dd334cb14be

See more details on using hashes here.

Provenance

The following attestation bundles were made for aws_signature-1.0.0-py3-none-any.whl:

Publisher: publish.yml on fcusson/aws-sig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page