Skip to main content

A library for sending and receiving AWS SQS messages.

Project description

Simple SQS

Provides a simple class-based wrapper around AWS SQS.

Quick start

Install with pip:

pip install simplesqs

Creating a queue:

from simplesqs.message import MessagingHandler

queue_name = "test_queue_simplesqs"
handler = MessagingHandler(queue_name=queue_name)
handler.create_queue()

Sending a message:

from simplesqs.message import MessagingHandler

queue_name = "test_queue_simplesqs"
handler = MessagingHandler(queue_name=queue_name)
handler.send_message(message_type='test', message={'message': f"Hello world!"})

Reading messages:

from simplesqs.message import MessagingHandler

queue_name = "test_queue_simplesqs"
handler = MessagingHandler(queue_name=queue_name)

while True:
    messages = handler.batch_receive_messages(message_type='test')
    if len(messages) == 0:
        break
    for message in messages:
        print(message.message)
        message.delete()

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

simplesqs-0.3.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

simplesqs-0.3.3-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file simplesqs-0.3.3.tar.gz.

File metadata

  • Download URL: simplesqs-0.3.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for simplesqs-0.3.3.tar.gz
Algorithm Hash digest
SHA256 f3cb36ba5db494881fb32a95a55dac58a4a3450cd75ed3906ef6edbca4b0bce3
MD5 1ae2ef7c1cec04918f9a2b28d81f934a
BLAKE2b-256 73d90cfb6abfa161e8184f977dc651b91f981955bd940cb86aaadc69887349a3

See more details on using hashes here.

File details

Details for the file simplesqs-0.3.3-py2.py3-none-any.whl.

File metadata

  • Download URL: simplesqs-0.3.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for simplesqs-0.3.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f9c45156d196ee76795e204146083045ca637bb66940001b84bbfcc79518de31
MD5 a7dd1ae4ac9de36836c0c8a79ae9ad39
BLAKE2b-256 53848029079e0b725378d2a76e8ac60ea629025f0967039c97b7e217331b3126

See more details on using hashes here.

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