semvec/pypi-packages huggingface dataset:
sqs_queue 0.1.2
AWS SQS queue consumer/publisher
License: MIT

py-sqs-queue
============

Simple Python AWS SQS queue consumer and publisher

Installation
------------

``python setup.py install``

Examples
--------

::

    from sqs_queue import Queue

    my_queue = Queue('YOUR_QUEUE_NAME')
    for message in my_queue:
        process(message)

Or, if you'd like to leave unprocessable messages in the queue to be
retried again later:

::

    for message in my_queue:
        try:
            process(message)
        except RetryableError:
            message.defer()
        except Exception as e:
            logger.warn(e)

And, you can publish to the queue as well:

::

    queue.publish('This is the body of my message.')

Parameters
----------

Behind the scenes, the generator is polling SQS for new messages. When
the queue is empty, that call will wait up to 20 seconds for new
messages, and if it times out before any arrive it will sleep for 40
seconds before trying again. Those time intervals are configurable:

::

    queue = Queue('YOUR_QUEUE_NAME', poll_wait=20, poll_sleep=40)
asker 0.1.7
Nice cli multiple choice selection and more!
License: MIT
Keywords: stdin,command line

Nice multiple choice selection and more!

See it at:

- `pypi`_
- `GitHub`_

==============  ===============  =========  ============
VERSION         DOWNLOADS        TESTS      COVERAGE
==============  ===============  =========  ============
|pip version|   |pip downloads|  |travis|   |coveralls|
==============  ===============  =========  ============

Various ways to get user input from the command-line, including selecting
an item from a long list of choices by typing to filter.


Quick Start
===========

.. code:: python

  from asker import ask
  best_choice = ask('Which one? ', choices=choices, labels=labels)


License
=======

Copyright (c) 2016 K.C.Saff (`@kcsaff`_)

Licensed under `the MIT license`_.


.. |travis| image:: https://travis-ci.org/kcsaff/getkey.png
  :target: `Travis`_
  :alt: Travis results

.. |coveralls| image:: https://coveralls.io/repos/kcsaff/getkey/badge.png
  :target: `Coveralls`_
  :alt: Coveralls results_

.. |pip version| image:: https://img.shields.io/pypi/dd/asker.svg
    :target: https://pypi.python.org/pypi/asker
    :alt: Latest PyPI version

.. |pip downloads| image:: https://img.shields.io/pypi/v/asker.svg
    :target: https://pypi.python.org/pypi/asker
    :alt: Number of PyPI downloads

.. _pypi: https://pypi.python.org/pypi/asker
.. _GitHub: https://github.com/kcsaff/asker
.. _Travis: https://travis-ci.org/kcsaff/asker
.. _Coveralls: https://coveralls.io/r/kcsaff/asker
.. _@kcsaff: https://twitter.com/kcsaff

.. _the MIT license: http://opensource.org/licenses/MIT