简体   繁体   中英

Python requests.Session implementation with AWS version 4 signing process headers

For communication with AWS API Gateway I've created a AWSv4SecureSession class which implements Version 4 Signing Process via inheriting from requests.Session and overloading requests.Session.request() method. There I add additional header ( Authorization ) required for the authentication.

My question is the following, is there a class in boto3 or botocore modules which I should use instead? What I want is a simple interface similar to requests.Session with get() , post() , put() , delete() and patch() methods.

正如jarmod所建议的那样aws-requests-auth软件包为python 请求库实现了身份验证。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM