Skip to main content

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 files for CallQueue 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CallQueue 0.1.0
File Size Uploaded
CallQueue-0.1.0.zip 3.5 kB Details

Release files / CallQueue-0.1.0.zip

Download URL CallQueue-0.1.0.zip
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ad9f560fe73e27c1c3063f123b8a551986a158b874e46e2380e62a8cf895e880
BLAKE2b-256 checksum
How to use checksums
8f2ae31484c229cb8701d9364de05175858eea35d8999bb95bd481804e872f81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page