github aws-powertools/powertools-lambda-python v3.20.0

one day ago

Summary

In this release we are excited to announce the new build recipes documentation for Powertools for AWS Lambda Python, which explains how to handle Rust and C bindings libraries, GLIBC compatibility, cross-platform builds, and architecture-specific dependencies.

We also improved the Parser utility models by adding detailed descriptions and examples illustrating AWS Lambda event structures.

⭐️ Congrats to @dcabib, @sreejaaryahi18, @Liam-DeVoe and @shrivarshapoojari for contributing to this project for the first time!

The build recipes documentation

Docs

The Python ecosystem is evolving with more Rust and C bindings for better performance, introducing new Lambda deployment challenges like GLIBC compatibility and cross-platform builds.

We've published updated Powertools build recipes that cover:

  • Build tools: pip, Poetry, SAM, CDK, Pants
  • Cross-platform deployment for macOS/Windows → Linux Lambda
  • GLIBC compatibility across Amazon Linux runtime versions
  • Troubleshooting common issues
  • Performance tips to reduce cold starts and package size
  • CI/CD examples with GitHub Actions and CodeBuild
image

Changes

  • refactor(event_handler): allow to pass dict as argument to exception classes (#7341) by @shrivarshapoojari
  • refactor(parser): improves S3 models with examples and descriptions (#7292) by @ivica-k
  • refactor(parser): Improve Transfer Family models with examples and descriptions (#7294) by @dcabib
  • refactor(parser): Improve Kafka models with examples and descriptions (#7293) by @dcabib
  • refactor(parser): Improve SQS models with examples and descriptions (#7286) by @dcabib
  • refactor(parser): Improve SNS models with examples and descriptions (#7287) by @dcabib
  • refactor(parser): Improve VPC Lattice with examples and descriptions (#7234) by @anafalcao
  • refactor(parser): Improve DynamoDB models with examples and descriptions (#7146) by @sreejaaryahi18

🌟New features and non-breaking changes

📜 Documentation updates

🐛 Bug and hot fixes

  • fix(shared/functions): fix slice_dictionary implementation (#7246) by @Liam-DeVoe

🔧 Maintenance

This release was made possible by the following contributors:

@ConnorKirk, @Liam-DeVoe, @anafalcao, @dcabib, @dependabot[bot], @dreamorosi, @github-actions[bot], @ivica-k, @leandrodamascena, @phipag, @shrivarshapoojari, @sreejaaryahi18, dependabot[bot] and github-actions[bot]

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

NewReleases is sending notifications on new releases.