Skip to main content

Parse SQS messages from lambda triggered SQS subscription

Project description

Actions Status Python 3.7 PyPI version License: MIT Total alerts Language grade: Python Twitter Follow

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

Project details


Download files

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

Files for lambda-parse-sqs, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size lambda_parse_sqs-0.2.2.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View
Filename, size lambda_parse_sqs-0.2.2-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page