Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

AWS API Gateway Client Lib for IAM Authorized APIs

Project description

AWS API Gateway IAM Authorizer Client

This provides a simple base class for AWS API Gateway clients to provide AWS V4 request signing for http requests when working against APIs using IAM Authorization.


Assuming the rest api endpoint

from apigw_iam_client import Client

class MyApi(Client):

   def list_oranges(self, store_id='all'):
       return self.get("%s/oranges" % store_id).json()
>> client = MyApi('b')
>> client.list_oranges()
{'version': '0.1.0', 'oranges': []}

The client also supports obtaining credentials via STS Role Assume to access the underlying api, by passing a role arn and optional session_name.

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for apigw-iam-client, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size apigw_iam_client-0.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page