Python utilities for AWS Lambda functions including but not limited to tracing, logging and custom metric
Project description
AWS Lambda Powertools
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 | Detailed blog post
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
- 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.1.2.tar.gz.
File metadata
- Download URL: aws_lambda_powertools-1.1.2.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
732148474b7183c4a328a9f2d937a5f9c9775d9437b692ab7ed1589629b3ef2f
|
|
| MD5 |
c0abe8994bf14a7c770bb21c27163287
|
|
| BLAKE2b-256 |
50be0abced145f55c543cc211c462076297b9ad9104baaadfc88995ab1395b57
|
File details
Details for the file aws_lambda_powertools-1.1.2-py3-none-any.whl.
File metadata
- Download URL: aws_lambda_powertools-1.1.2-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8f6b57ac847e4a866db04b34aaefc1f6d25afbc5c104ccb4bb0aefe0424bc39
|
|
| MD5 |
7a7997d2228ca110c2148708c38ae1ba
|
|
| BLAKE2b-256 |
ff07f10a4f4d9752ab8aabccfb1d0fc369902f58f40db1db485e4744c3afc5d1
|