Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pysqes

How to install pysqes

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pysqes
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.1.4 Available View build log
Linux (64-bit)
0.1.4 Available View build log
 
Author
License
Apache
Dependencies
Imports
Lastest release
version 0.1.4 on Aug 27th, 2013

pysqes

Simple queue service for python using SQS and boto.

Usage

In order to create a task you can use the SQSTask class to create an instance that include a function decorator which can be sent to the queue when you run the delay method that will be added to the function. The delay function takes the parameters that will be used by the worker when it actually executes the task.

```python from boto.sqs.connection import SQSConnection

System Message: WARNING/2 (<string>, line 14); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 14); backlink

Inline interpreted text or phrase reference start-string without end-string.

from pysqes.task import SQSTask

conn = SQSConnection('ACCESS_KEY', 'SECRETE_KEY') task = SQSTask(conn)

@task.task def add(a, b):

System Message: ERROR/3 (<string>, line 25)

Unexpected indentation.
return a + b

# this will submit a job to the queue add.delay(1, 3) ```

System Message: WARNING/2 (<string>, line 27); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 27); backlink

Inline interpreted text or phrase reference start-string without end-string.

You can run the task by using the work method included in the SQSWorker class, all you need to do is create a worker instance. ```python from boto.sqs.connection import SQSConnection

System Message: WARNING/2 (<string>, line 31); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 31); backlink

Inline interpreted text or phrase reference start-string without end-string.

from pysqes.worker import SQSWorker

conn = SQSConnection('ACCESS_KEY', 'SECRETE_KEY') worker = SQSWorker(conn)

worker.work() ```

System Message: WARNING/2 (<string>, line 41); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 41); backlink

Inline interpreted text or phrase reference start-string without end-string.

Running the tests

System Message: WARNING/2 (<string>, line 45)

Title underline too short.

Running the tests
======

If you are using python 2.7 you can run the unit tests by using the new discover runner included in the unittest module:

`shell python -m unittest discover -s tests `

else you can just run each unit test individually.

Subscribe to package updates

Last updated Aug 27th, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.