Skip to main content

Python utilities for AWS Lambda functions including but not limited to tracing, logging and custom metric

Project description

Lambda Powertools

Build PythonSupport PyPI version PyPi monthly downloads

A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier.

📜Documentation | API Docs | 🐍PyPi | Feature request | 🐛Bug Report | Kitchen sink example

Features

  • Tracing - Decorators and utilities to trace Lambda function handlers, and both synchronous and asynchronous functions
  • Logging - Structured logging made easier, and decorator to enrich structured logging with key Lambda context details
  • Metrics - Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)
  • Bring your own middleware - Decorator factory to create your own middleware to run logic before, and after each Lambda invocation

Installation

With pip installed, run: pip install aws-lambda-powertools

Example

See example of all features, testing, and a SAM template with all Powertools env vars. All features also provide full docs, and code completion for VSCode and PyCharm.

Credits

License

This library is licensed under the MIT-0 License. See the LICENSE file.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_lambda_powertools-1.0.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_lambda_powertools-1.0.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file aws_lambda_powertools-1.0.0.tar.gz.

File metadata

  • Download URL: aws_lambda_powertools-1.0.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.8.3 Linux/5.3.0-1028-azure

File hashes

Hashes for aws_lambda_powertools-1.0.0.tar.gz
Algorithm Hash digest
SHA256 47c87461da56907c9e9026acf88ef6b06ef911c8adc27ba325a3deaa9182d97b
MD5 0bfed02367a9967dd48288e135a95845
BLAKE2b-256 58f64a6e2429619c860d7efc3ab7940be6a548680e34aa9286e194355ccc8f99

See more details on using hashes here.

File details

Details for the file aws_lambda_powertools-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_lambda_powertools-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb86f7e1aa1d024efac7f24600b0bd1e9c2d3796124d684ace5d88276da6155d
MD5 93baeaa222019e118ffdc36fe3533922
BLAKE2b-256 e4331830a5bb177a7eacf157ad1694b79269909bdbe95ef065972f9f80a4ee40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page