Skip to content

Conversation

@smatsumt
Copy link
Contributor

@smatsumt smatsumt commented Mar 14, 2020

This pull request change import boto3.session with from boto3 import session as session_.
It makes easy to patch boto3.client and boto3.resource call in other source code.

In original implementation, we can not patch boto3.client with localstack.session.Session().client because localstack.session also uses boto3.client and it ends with RecursionError.

Importing boto3.client with different name will not cause such error when we patch boto3.client.

I also added a simple patching sample in README.md Usage section. This PR may relate with Issue #6

@whummer
Copy link
Member

whummer commented Mar 15, 2020

Thanks for this enhancement @smatsumt . 👍 We'll release a new version to pypi shortly.

@whummer whummer merged commit 16b1bca into localstack:master Mar 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants