Skip to main content

pillar-queue-wrapper

Pillar's wrapper around AWS SQS

There are 2 options for authentication through this wrapper

  • Explicit: Where the 'aws_access_key' and 'aws_access_secret' are explicitly passed into the queue function
  • Implicit: Where 'None' is passed into the queue function and it trys to get the credetials from the AWS cli Install the aws cli and add the 'aws_access_key' and 'aws_access_secret' to it.

Quickstart/Basic Usage

    q = Queue(
        name="queuename",
        aws_access_key="aws_access_key here",
        aws_access_secret="aws_access_secret here",
        aws_default_region='us-east-1',
    )
    #Note if a queue name ends with .fifo, it is a fifo queue

    q.send_message(message="A test message", message_attributes={}, message_group_id=None, deduplication_id=None)

    #blocking function that will wait for a message to appear
    message = q.wait_for_message(delete_message=True)
    print(message.body)

Testing

  1. Install AWS CLI with pip install awscli, insert your AWS iam Access key ID and Secret access key found in the AWS IAM console

  2. Make two queues in the SQS Tab called testqueue and testqueue.fifo. The queue testqueue.fifo should be of the FIFO type detailed here. These queues will be used to run the tests.

  3. Run 'pytest'

Future Features:

  • Queue creation/destruction
  • Message pooling
  • get,set, and delete functionality to use queues like arrays pythonically

Release files for pillar-queue-wrapper 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pillar-queue-wrapper 0.0.1
File Size Uploaded
pillar-queue-wrapper-0.0.1.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pillar-queue-wrapper 0.0.1
File Interpreter ABI Platform
pillar_queue_wrapper-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / pillar-queue-wrapper-0.0.1.tar.gz

Download URL pillar-queue-wrapper-0.0.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
271752422aa286a7fb56d2a601e5d4b7200eb8c2035196cfea3ae8fc2887d77c
BLAKE2b-256 checksum
How to use checksums
44ace204464cdc920fb0bf4a0a7272bc23264a29939d294e9a362ff5b29196f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / pillar_queue_wrapper-0.0.1-py3-none-any.whl

Download URL pillar_queue_wrapper-0.0.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b13e48374240c9842c6f465a361bf2d6b98c2f64f522a4385bf40d2b6fb542e4
BLAKE2b-256 checksum
How to use checksums
2091d9a81f38d7157834c0c08cf5a5e1dd9144d6d1b451c4f73434fb41832789
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page