Package: aws-lambda-powertools
Powertools for AWS Lambda (Python)Powertools for AWS Lambda (Python) is a developer toolkit to implement Serverlessbest practices and increase developer velocity.Also available inJava,Typescript, and.NET.📜Documentation|🐍PyPi|Roadmap|Detailed blog postFeaturesTracing- Decorators and utilities to trace Lambda function handlers, and both synchronous and asynchronous functionsLogging- Structured logging made easier, and decorator to enrich structured logging with key Lambda context detailsMetrics- Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)Event handler: AppSync- AWS AppSync event handler for Lambda Direct Resolver and Amplify GraphQL Transformer functionEvent handler: API Gateway and ALB- Amazon API Gateway REST/HTTP API and ALB event handler for Lambda functions invoked using Proxy integrationBring your own middleware- Decorator factory to create your own middleware to run logic before, and after each Lambda invocationParameters utility- Retrieve and cache parameter values from Parameter Store, Secrets Manager, or DynamoDBBatch processing- Handle partial failures for AWS SQS batch processingTyping- Static typing classes to speedup development in your IDEValidation- JSON Schema validator for inbound events and responsesEvent source data classes- Data classes describing the schema of common Lambda event triggersParser- Data parsing and deep validation using PydanticIdempotency- Convert your Lambda functions into idempotent operations which are safe to retryData Masking-  Protect confidential data with easy removal or encryptionFeature Flags- A simple rule engine to evaluate when one or multiple features should be enabled depending on the inputStreaming- Streams datasets larger than the available memory as streaming data.InstallationWithpipinstalled, run:pip install aws-lambda-powertoolsTutorial and ExamplesTutorialServerless Shopping cartServerless AirlineServerless E-commerce platformServerless GraphQL Nanny Booking ApiHow to support Powertools for AWS Lambda (Python)?Becoming a reference customerKnowing which companies are using this library is important to help prioritize the project internally. If your company is using Powertools for AWS Lambda (Python), you can request to have your name and logo added to the README file by raising aSupport Powertools for AWS Lambda (Python) (become a reference)issue.The following companies, among others, use Powertools:Capital OneCPQi (Exadel Financial Services)CloudZeroCyberArkglobaldatanetIMSJit SecurityPropellor.aiTopSportTransformityTrek10Vertex PharmaceuticalsSharing your workShare what you did with Powertools for AWS Lambda (Python) 💞💞. Blog post, workshops, presentation, sample apps and others. Check out what the community has already shared about Powertools for AWS Lambda (Python)here.Using Lambda Layer or SARThis helps us understand who uses Powertools for AWS Lambda (Python) in a non-intrusive way, and helps us gain future investments for other Powertools for AWS Lambda languages. Whenusing Layers, you can add Powertools for AWS Lambda (Python) as a dev dependency (or as part of your virtual env) to not impact the development process.CreditsStructured logging initial implementation fromaws-lambda-loggingPowertools for AWS Lambda (Python) ideaDAZN PowertoolsConnectPowertools for AWS Lambda on Discord:#python-Invite linkEmail:aws-powertools-maintainers@amazon.comSecurity disclosuresIf you think you’ve found a potential security issue, please do not post it in the Issues.  Instead, please follow the instructionshereoremail AWS security directly.LicenseThis library is licensed under the MIT-0 License. See the LICENSE file.