Class Interface for AWS Lambda event.
Project description
Welcome to aws_lambda_event Documentation
This library provides Python Class interface, attribute auto-complete, type hint for AWS Lambda Events.
Example:
# An example lambda handler python module
import aws_lambda_event
# example S3 Put event
def handler(event, context):
event_obj = aws_lambda_event.S3PutEvent(**event)
for record in event_obj.records:
# access attribute
_ = record.eventTime
# important attributes quick access alias
_ = record.bucket
_ = record.key
_ = record.etag
_ = record.size
...
You can find the event JSON schema in two place:
AWS Lambda Event Source Mapping Official Document: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html
Goto AWS Lambda Function Console -> Create Test Event -> Choose from Event template
Install
aws_lambda_event is released on PyPI, so all you need is:
$ pip install aws_lambda_event
To upgrade to latest version:
$ pip install --upgrade aws_lambda_event
Project details
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_event-0.0.1.tar.gz
(12.6 kB
view details)
Built Distribution
File details
Details for the file aws_lambda_event-0.0.1.tar.gz
.
File metadata
- Download URL: aws_lambda_event-0.0.1.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7594b2b5368d5e502aa8c0e07335c33d330b8f20fe69791e6ebd3d20f5f14b23 |
|
MD5 | 124cec0671f90317079c584a1f133cac |
|
BLAKE2b-256 | bcb5ebc7238d90f8d42fe9b0d75282fd70344b4d3b1a99183fe7d45e86d81227 |
File details
Details for the file aws_lambda_event-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: aws_lambda_event-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd95d61d6b0e248ba1d398d8cff9693e05a819902d68718cff2a6011021d09d9 |
|
MD5 | 93f0012162b449aba199b3ec8ad9b502 |
|
BLAKE2b-256 | 3007330752f682a33dcdf124240c7ec0c6d307c87fddb1a12f7f5d607e44ac6b |