CallQueue-0.1.0
توضیحات
Store functions and methods for delayed callback
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | CallQueue-0.1.0 |
| نام | CallQueue |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Joshua R. English |
| ایمیل نویسنده | Joshua.R.English@gmail.com |
| آدرس صفحه اصلی | https://code.google.com/p/pycallqueue/ |
| آدرس اینترنتی | https://pypi.org/project/CallQueue/ |
| مجوز | LICENSE.txt |
==========
Call Queue
==========
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
نحوه نصب
نصب پکیج whl CallQueue-0.1.0:
pip install CallQueue-0.1.0.whl
نصب پکیج tar.gz CallQueue-0.1.0:
pip install CallQueue-0.1.0.tar.gz