github aws-powertools/powertools-lambda-python v1.14.0

latest releases: v2.37.0, v2.36.0, v2.35.1...
3 years ago

Summary

This release a new Event Handlers core utility, and enables versioning for documentation so you can access staging docs early or a specific release doc.

Additionally, there are a number of enhancements in the documentation, Parser's support for S3 Object Lambda event, a better support for MyPy (more to come), etc.

Event Handlers

This is a new core utility to help you reduce boilerplate when working with Event Sources. For example, you can now have clearly defined single purpose methods to be called depending on what's inside the event instead of nested flow controls (if/else/elif).

AWS AppSync is our first event handler (thanks to @michaelbrewer), and we would love to hear from you what other event handlers would be useful to boost your experience even further.

Notice how you can combine AppSync scalar utilities, Logger correlation ID, Tracer, and have tiny functions to compute a given GraphQL field or type now.

image

Versioned docs

Some of you might have already noticed a new version switch at the top of the documentation, including additional stats from GitHub directly on the top right corner.

This means you can now access early versions of the documentation before we release as well as the last two releases. This opens the door for a possible nightly build release :)

image

Changes

🌟New features and non-breaking changes

  • docs: enable versioning feature (#374) by @heitorlessa
  • feat(event-handler): Add AppSync handler decorator (#363) by @michaelbrewer
  • feat(parser): Add S3 Object Lambda Event (#362) by @risenberg-cyberark

🌟 Minor Changes

πŸ“œ Documentation updates

πŸ› Bug and hot fixes

πŸ”§ Internal

This release was made possible by the following contributors:

@heitorlessa, @michaelbrewer, @risenberg-cyberark and @rtrive

Discussion: #394

Don't miss a new powertools-lambda-python release

NewReleases is sending notifications on new releases.