Metadata-Version: 1.1
Name: powerlibs-aws-sqs
Version: 0.1.1
Summary: Python libraries to facilitate publishing on Amazon SNS
Home-page: https://github.com/Dronemapp/powerlibs-aws-sqs
Author: Cléber Zavadniak
Author-email: cleberman@gmail.com
License: MIT License

Copyright (c) 2017 DroneMapp

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description-Content-Type: UNKNOWN
Description: # powerlibs-aws-sqs
        
        Amazon SQS helper classes
        
        ## Usage
        
        ### Manual configuration
        
        ```python
        from powerlibs.aws.sqs.listener import SQSListener
        
        
        class MySQSListener(SQSListener):
            def process_message(payload):
                # Do the processing and return True if you
                # want to acknowledge (delete) the message:
                return True
        
        
        my_listener = MySQSListener(
            aws_access_key_id,
            aws_secret_access_key,
            'us-east-1',  # aws_region
            'MyQueueName'  # queue name
            )
        
        my_listener.process_messages()  # Attention to the plural form!
        ```
        
        
        Alternatively, you can process only N messages:
        
        
        ```python
        my_listener.process_messages(10)  # Where N = 10, for example.
        ```
        
        
        ### Configuration via environment variables
        
        It's probable you already have `AWS_ACCESS_KEY_ID`,
        `AWS_SECRET_ACCESS_KEY` and `AWS_REGION` environment variables defined, so
        you can just use this helper function:
        
        ```python
        from powerlibs.aws.sqs import listener
        
        my_listener = listener.get_listener_configured_via_environment_variables()
        ```
        
Keywords: generic libraries
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
