Skip to main content

AWS SQS utility package for producing and consuming messages

Project description

Code coverage Updates Documentation Status Build status Language grade:: Python

A more pythonic approach to SQS producer/consumer utilities. Heavily inspired from the the pySqsListener package.

Install

pip install sqspy

Usage

from sqspy import Consumer

class MyWorker(Consumer):
    def handle_message(self, body, attributes, message_attributes):
        print(body)

listener = MyWorker('Q1', error_queue='EQ1')
listener.listen()

More documentation coming soon.

Why

The mentioned project had a few issues which I faced while trying to implement at my organisation. The local environment testing setup was very flaky. The signatures for sqs_listener and sqs_producer were very different from each other.

This rewrite supports python 3.6+ versions only, and makes use of a lot of newer python features. It also makes use of service resources (for lazy calls) from the boto3 library instead of making calls via the low level client.

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

sqspy-1.0.0.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distributions

sqspy-1.0.0-py3.9.egg (8.1 kB view hashes)

Uploaded Source

sqspy-1.0.0-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

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