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.

Source Distribution

lambda_parse_sqs-0.2.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

lambda_parse_sqs-0.2.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file lambda_parse_sqs-0.2.2.tar.gz.

File metadata

  • Download URL: lambda_parse_sqs-0.2.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for lambda_parse_sqs-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f7a6f92bcd708377980eb070a49d86bcf91fae1002bc8b2d675a9b029149276c
MD5 46bf0d9a3100a42604b7bfefc88d8ae5
BLAKE2b-256 b29631356ee5c7d87bcae4ae6c5c20053fc2d30688a2c729928533a6822033a1

See more details on using hashes here.

File details

Details for the file lambda_parse_sqs-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: lambda_parse_sqs-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for lambda_parse_sqs-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04ab67278a41a5478f378f9b86dfc2b6517c42695ef62f11213a1b9587259731
MD5 f46db9d910d5b7226ff4218c4258c6b0
BLAKE2b-256 6807d3514e7bd9f1df3041f47f2c2ac0698c207efa1872633a21d97bf1ef2fa9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page