Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Queue class #8

Open
scott-w opened this issue Jan 5, 2018 · 0 comments
Open

Add Queue class #8

scott-w opened this issue Jan 5, 2018 · 0 comments

Comments

@scott-w
Copy link
Contributor

scott-w commented Jan 5, 2018

It would be nice to be able to represent SQS Queues as code and operate on the class.

An API that looks like:

from queue_fetcher import sqs


class SampleQueue(sqs.Queue):
    """
    """

    queue = 'QUEUE_KEY'
    region_name = 'eu-west-1'


my_queue = SampleQueue()
my_queue.send_message({'key': 'value', 'key2': 'value2'})

This would differ from the low-level QueueFetcher class in that it would deal with the details of setting up queue connections for higher-level code. We can also add features to QueueFetcher to just depend directly on these classes for custom code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant