postmanlabs / postman-code-generators

Common repository for all code generators shipped with Postman
Apache License 2.0
981 stars 348 forks source link

Add python urllib3 support #729

Open wojciechbojewski opened 5 months ago

wojciechbojewski commented 5 months ago

Hello.

As we can read on AWS Blog requests is not supported by default in AWS Lambda function. It would be helpful to have urllib3 in Code snippet - "Python - urllib3"

The upcoming changes to AWS SDK

One of the main changes is that the requests library was replaced with urllib3. Additionally, the requests dependency was also unvendored, meaning Botocore can now support a range of versions of urllib3, instead of relying on a specific version. From version 1.13.0, the requests module is no longer part of the AWS SDK for Python. These changes create additional flexibility for Python developers, and can result in performance improvements for applications using Botocore.

Although the SDK has removed the requests module, the Lambda service continues to bundle the requests module in the AWS SDK until January 30, 2021. This is so builders have additional time to decide on the best course of action for their Python Lambda functions that rely on the requests module.

Thanks, Wojtek