Python utilities for AWS Lambda functions including but not limited to tracing, logging and custom metric
Project description
AWS Lambda Powertools (Python)
A suite of Python utilities for AWS Lambda functions to ease adopting best practices such as tracing, structured logging, custom metrics, and more. (AWS Lambda Powertools Java is also available).
📜Documentation | API Docs | 🐍PyPi | Feature request | 🐛Bug Report | Hello world example | Detailed blog post
Join us on the AWS Developers Slack at
#lambda-powertools- Invite, if you don't have an account
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
- Parameters utility - Retrieve and cache parameter values from Parameter Store, Secrets Manager, or DynamoDB
Installation
With pip installed, run: pip install aws-lambda-powertools
Examples
Credits
- Structured logging initial implementation from aws-lambda-logging
- Powertools idea DAZN Powertools
- Gatsby Apollo Theme for Docs
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_lambda_powertools-1.9.0.tar.gz.
File metadata
- Download URL: aws_lambda_powertools-1.9.0.tar.gz
- Upload date:
- Size: 57.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
317a3de794bbe29cb6c7d6c45e40b56bd1efc5863ee3f7af497d2318bbf74890
|
|
| MD5 |
db62eea214164ed20c867aaff343dfa4
|
|
| BLAKE2b-256 |
948e39a7912fe5a65b7dc677f43ece0a7094ca703839b5ffaa6a23c176114bb7
|
File details
Details for the file aws_lambda_powertools-1.9.0-py3-none-any.whl.
File metadata
- Download URL: aws_lambda_powertools-1.9.0-py3-none-any.whl
- Upload date:
- Size: 88.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.4.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ba3454aba58e30fb94112d958ca245e43664d4a27799e461b4e785ae671901f
|
|
| MD5 |
68ab24eeff850d937a4a187c12bc809a
|
|
| BLAKE2b-256 |
96bdb83914defd5ad346d67842adaa366bb9ec0b6776f4fedcbebc34756c5077
|