Skip to content

This package allows you to add the authorization headers to your request required by Amazon's signature version 4

Notifications You must be signed in to change notification settings

ionesu/aws_sigv4_request_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

AWS Signature Version 4 signing process (Python)

This package allows you to add the authorization headers to your request required by Amazon's signature version 4

Tested with python 3.9

Usage

import requests
from aws_sigv4_request_generator.aws_sigv4 import AWSSigV4RequestGenerator

auth = AWSSigV4RequestGenerator(
        aws_access_key_id='YOUR_KEY',
        aws_secret_access_key='YOUR_SECRET',
        aws_session_token='YOUR_SESSION_TOKEN',
        aws_region='us-east-1',
        aws_service='execute-api'
        )

response = requests.request('GET', 'https://api.domain.com/path', auth=auth)

Thanks to

AWS Examples of the complete Signature Version 4 signing process

GitHub user DavidMuller and his package aws-requests-auth

GitHub user andrewjroth and his package requests-auth-aws-sigv4

About

This package allows you to add the authorization headers to your request required by Amazon's signature version 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages