powertools-lambda-python
powertools-lambda-python copied to clipboard
A developer toolkit to implement Serverless best practices and increase developer velocity.
### Use case The middleware functionality for the event handler REST APIs provides a really nice way to work with requests but the AppSyncResolver does not have the same API...
### Use case The built in logging formatter provides very good defaults, however is there a potential work around to avoid stripping logging context whose value is `None`? This method...
### Use case Would love to be able to use the `AsyncBatchProcessor` and `async_process_partial_response` function along with the idempotency utility. ### Solution/User Experience ``` def async_idempotent_function(): def wrapper(func): @functools.wraps(func) async...
### Expected Behaviour Complete login flow to generate JWT access token. ### Current Behaviour When I click on "Authorize" button in Swagger UI, the login flow begins and I'm eventually...
**Issue number:** #1166 ## Summary ### Changes This PR aims to extend the availability of the AWS Lambda Powertools layer to AWS GovCloud regions. ### User experience **Before this PR:**...
**Issue number:** #991 ## Summary ### Changes - New logger methods: - `append_thread_local_keys` : add key to thread-local ContextVar - `get_current_thread_keys`: get all keys from thread-local ContextVar - `remove_thread_local_keys`: remove...
### Expected Behaviour When accessing the router.context in a resolver, with async resolvers, it should not be an empty dict, but much rather expose the context injected with app.append_context[](url) ###...
### Use case The https://github.com/aws-powertools/powertools-lambda-layer-cdk project has been used in the past to build Lambda layers for this project, but this adds a lot of unnecessary complexity to this project....
Quick report of top 3 issues/PRs to assist in roadmap updates. Issues or PRs with the following labels are excluded: * do-not-merge * need-issue * need-rfc * need-customer-feedback * on-hold...
### Use case I write Lambda functions in Python using the Powertools and I'd like a consistent deployment both in AWS Global and AWS China. ### Solution/User Experience A solution...