cloud-tasks-deferred-v2-0.0.6
توضیحات
A deferred library for Google Cloud Tasks
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cloud-tasks-deferred-v2-0.0.6 |
| نام | cloud-tasks-deferred-v2 |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/nagolos/python-cloud-tasks-deferred-v2 |
| آدرس اینترنتی | https://pypi.org/project/cloud-tasks-deferred-v2/ |
| مجوز | - |
# cloud-tasks-deferred-v2
A deferred library for Google Cloud Tasks.
Fork of [python-cloud-tasks-deferred](https://github.com/grktsh/python-cloud-tasks-deferred) originally created by [Atsushi Hanaoka](https://github.com/grktsh).
## Key differences
- Migrated to google-cloud-tasks 2.0.0
- Dropped Python 2 support
- Added Flask integration
## Installation
Addd following handler to your app.yaml
```yaml
- url: /_tasks/deferred
script: cloud_tasks_deferred.wsgi.application
login: admin
```
Initialize module in flask
```python
from cloud_tasks_deferred_v2.flask import init_deferred
init_deferred(app)
```
## Prerequisites
- Environment variable `QUEUE_LOCATION` in which Cloud Tasks service runs
## Unavailable options
- `_transactional`: Transactional tasks are unavailable in Cloud Tasks
- `_retry_options`: Retry options for tasks are unavailable in Cloud
Tasks
## Unimplemented features
- Support for tasks larger than 10 KB
نیازمندی
| مقدار | نام |
|---|---|
| >=2.0.0 | google-cloud-tasks |
| - | pytest |
نحوه نصب
نصب پکیج whl cloud-tasks-deferred-v2-0.0.6:
pip install cloud-tasks-deferred-v2-0.0.6.whl
نصب پکیج tar.gz cloud-tasks-deferred-v2-0.0.6:
pip install cloud-tasks-deferred-v2-0.0.6.tar.gz