Lambda Parse SQS Messages
When creating a Lambda subscription to consume SQS events, it's possible to receive multiple messages at once function invocation. So, its necessary to parse message body and iterate over multiple events.
pip install lambda-parse-sqs
from lambda_parse_sqs import parse_messages
def lambda_handler(event, context):
messages = parse_messages(event)
for message in messages:
# Do wethever you want
Metadata
Release files for lambda-parse-sqs 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lambda_parse_sqs-0.2.2.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lambda_parse_sqs-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / lambda_parse_sqs-0.2.2.tar.gz
| Download URL | lambda_parse_sqs-0.2.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7a6f92bcd708377980eb070a49d86bcf91fae1002bc8b2d675a9b029149276c
|
|
BLAKE2b-256 checksum How to use checksums |
b29631356ee5c7d87bcae4ae6c5c20053fc2d30688a2c729928533a6822033a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Release files / lambda_parse_sqs-0.2.2-py3-none-any.whl
| Download URL | lambda_parse_sqs-0.2.2-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04ab67278a41a5478f378f9b86dfc2b6517c42695ef62f11213a1b9587259731
|
|
BLAKE2b-256 checksum How to use checksums |
6807d3514e7bd9f1df3041f47f2c2ac0698c207efa1872633a21d97bf1ef2fa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|