Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Store functions and methods for delayed callback

Project Description

Call Queue provides a mixin class to store functions, methods, or any callable object with the associated arguments and keyword arguments.

Each Queuable object has a key, so queues can be separated by need.

It can be used directly:

#!/usr/bin/env python

from queueable import Queueable

Arthur = Queueable('human')

Trillian = Queuable('human')

Ford = Queuable('alien')

Zaphod = Queueable('alien')

def drink_tea(response):
        print "This stuff {}".format(response)

Arthur.queue(drink_tea, "tastes filthy") # Nothing happens

Ford.process_queue() # Nothing happens

Trillian.process_queue() # runs the queued drink_tea function
Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
CallQueue-0.1.0.zip (3.5 kB) Copy SHA256 Checksum SHA256 Source Apr 10, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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