This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

asyncio client and server for RQ.

Features

  • Event loop friendly
  • Non-blocking job enqueueing and result obtaining

Installation

You can always install last released version from python package index.

pip install aiorq

Getting started

Suppose we have a module with slow blocking function like this one.

import requests

def get_json(url):
    response = requests.get(url)
    return response.json()

To schedule deferred jobs create queue and enqueue the function call within event loop.

import asyncio

from aioredis import create_redis
from aiorq import Queue, use_connection

from my_module import get_json

loop = asyncio.get_event_loop()

@asyncio.coroutine
def main():
    redis = yield from create_redis(('localhost', 6379), loop=loop)
    use_connection(redis)
    queue = Queue()
    job = yield from queue.enqueue(get_json, 'https://www.python.org')
    print((yield from job.result))
    redis.close()
    yield from redis.wait_closed()

loop.run_until_complete(main())

License

The aiorq is offered under LGPL license.

Changelog

0.1 (2016-01-03)

  • Enqueue job and gather result without blocking event loop.
Release History

Release History

0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.dev1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
aiorq-0.1-py3-none-any.whl (17.4 kB) Copy SHA256 Checksum SHA256 py3 Wheel Jan 3, 2016
aiorq-0.1.tar.gz (16.0 kB) Copy SHA256 Checksum SHA256 Source Jan 3, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting