django-qstash 0.0.13__tar.gz → 0.0.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of django-qstash might be problematic. Click here for more details.
- {django_qstash-0.0.13 → django_qstash-0.0.14}/PKG-INFO +13 -6
- {django_qstash-0.0.13 → django_qstash-0.0.14}/README.md +12 -5
- {django_qstash-0.0.13 → django_qstash-0.0.14}/pyproject.toml +1 -1
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/__init__.py +1 -1
- django_qstash-0.0.14/src/django_qstash/urls.py +9 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/PKG-INFO +13 -6
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/SOURCES.txt +1 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/setup.cfg +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/app/__init__.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/app/base.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/app/decorators.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/callbacks.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/client.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/cron.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/db/__init__.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/db/models.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/discovery/__init__.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/discovery/fields.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/discovery/models.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/discovery/utils.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/discovery/validators.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/exceptions.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/handlers.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/__init__.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/commands/__init__.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/commands/available_tasks.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/commands/clear_stale_results.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/commands/task_schedules.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/__init__.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/admin.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/apps.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/migrations/0001_initial.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/migrations/0002_taskresult_function_path_alter_taskresult_status_and_more.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/migrations/__init__.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/models.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/services.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/tasks.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/__init__.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/admin.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/apps.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/exceptions.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/formatters.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/forms.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/migrations/0001_initial.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/migrations/0002_taskschedule_updated_at.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/migrations/0003_alter_taskschedule_cron.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/migrations/__init__.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/models.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/services.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/signals.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/validators.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/settings.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/utils.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/views.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/dependency_links.txt +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/requires.txt +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/top_level.txt +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_callbacks.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_exceptions.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_handlers.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_results_models.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_settings.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_utils.py +0 -0
- {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_views.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: django-qstash
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.14
|
|
4
4
|
Summary: A drop-in replacement for Celery's shared_task with Upstash QStash.
|
|
5
5
|
Author-email: Justin Mitchel <justin@codingforentrepreneurs.com>
|
|
6
6
|
Project-URL: Changelog, https://github.com/jmitchel3/django-qstash
|
|
@@ -72,7 +72,7 @@ This allows us to:
|
|
|
72
72
|
- [Installation](#installation)
|
|
73
73
|
- [Using Pip](#using-pip)
|
|
74
74
|
- [Update Settings (`settings.py`)](#update-settings-settingspy)
|
|
75
|
-
- [Configure Webhook
|
|
75
|
+
- [Configure QStash Webhook Handler](#configure-qstash-webhook-handler)
|
|
76
76
|
- [Required Environment Variables](#required-environment-variables)
|
|
77
77
|
- [Sample Project](#sample-project)
|
|
78
78
|
- [Dependencies](#dependencies)
|
|
@@ -123,20 +123,27 @@ INSTALLED_APPS = [
|
|
|
123
123
|
- `django_qstash.results` (Optional): Store task results in Django DB
|
|
124
124
|
- `django_qstash.schedules` (Optional): Use QStash Schedules to run your `django_qstash` tasks. Out of the box support for _django_qstash_ `@stashed_task`. Schedule tasks using _cron_ (e.g. `0 0 * * *`) format which is required based on [QStash Schedules](https://upstash.com/docs/qstash/features/schedules). use [contrab.guru](https://crontab.guru/) for writing the cron format.
|
|
125
125
|
|
|
126
|
-
### Configure Webhook
|
|
126
|
+
### Configure QStash Webhook Handler
|
|
127
|
+
|
|
128
|
+
Set it and forget it. `django_qstash` will handle the webhook from qstash automatically for you.
|
|
127
129
|
|
|
128
130
|
In your `ROOT_URLCONF` (e.g. `urls.py`), add the following:
|
|
131
|
+
|
|
129
132
|
```python
|
|
130
|
-
from
|
|
133
|
+
from django.urls import include
|
|
131
134
|
|
|
132
135
|
urlpatterns = [
|
|
133
136
|
# ...
|
|
134
|
-
path("qstash/webhook/",
|
|
137
|
+
path("qstash/webhook/", include("django_qstash.urls")),
|
|
135
138
|
# ...
|
|
136
139
|
]
|
|
137
140
|
```
|
|
138
141
|
Be sure to use this path in your `DJANGO_QSTASH_WEBHOOK_PATH` environment variable.
|
|
139
142
|
|
|
143
|
+
|
|
144
|
+
The `django_qstash` webhook handler runs your `@shared_task` or `@stashed_task` functions via the `importlib` module. In other words, you should not need to modify the webhook handler.
|
|
145
|
+
|
|
146
|
+
|
|
140
147
|
### Required Environment Variables
|
|
141
148
|
|
|
142
149
|
Get your QStash token and signing keys from [Upstash](https://upstash.com/).
|
|
@@ -348,7 +355,7 @@ Various options are available to configure django-qstash.
|
|
|
348
355
|
|
|
349
356
|
### Example Django Settings
|
|
350
357
|
|
|
351
|
-
For a complete example, review [sample_project/settings.py](sample_project/settings.py) where [python-decouple](https://github.com/henriquebastos/python-decouple) is used to set the environment variables via the `.env` file or system environment variables (for production use).
|
|
358
|
+
For a complete example, review [sample_project/cfehome/settings.py](sample_project/cfehome/settings.py) where [python-decouple](https://github.com/henriquebastos/python-decouple) is used to set the environment variables via the `.env` file or system environment variables (for production use).
|
|
352
359
|
|
|
353
360
|
Using `os.environ`:
|
|
354
361
|
```python
|
|
@@ -43,7 +43,7 @@ This allows us to:
|
|
|
43
43
|
- [Installation](#installation)
|
|
44
44
|
- [Using Pip](#using-pip)
|
|
45
45
|
- [Update Settings (`settings.py`)](#update-settings-settingspy)
|
|
46
|
-
- [Configure Webhook
|
|
46
|
+
- [Configure QStash Webhook Handler](#configure-qstash-webhook-handler)
|
|
47
47
|
- [Required Environment Variables](#required-environment-variables)
|
|
48
48
|
- [Sample Project](#sample-project)
|
|
49
49
|
- [Dependencies](#dependencies)
|
|
@@ -94,20 +94,27 @@ INSTALLED_APPS = [
|
|
|
94
94
|
- `django_qstash.results` (Optional): Store task results in Django DB
|
|
95
95
|
- `django_qstash.schedules` (Optional): Use QStash Schedules to run your `django_qstash` tasks. Out of the box support for _django_qstash_ `@stashed_task`. Schedule tasks using _cron_ (e.g. `0 0 * * *`) format which is required based on [QStash Schedules](https://upstash.com/docs/qstash/features/schedules). use [contrab.guru](https://crontab.guru/) for writing the cron format.
|
|
96
96
|
|
|
97
|
-
### Configure Webhook
|
|
97
|
+
### Configure QStash Webhook Handler
|
|
98
|
+
|
|
99
|
+
Set it and forget it. `django_qstash` will handle the webhook from qstash automatically for you.
|
|
98
100
|
|
|
99
101
|
In your `ROOT_URLCONF` (e.g. `urls.py`), add the following:
|
|
102
|
+
|
|
100
103
|
```python
|
|
101
|
-
from
|
|
104
|
+
from django.urls import include
|
|
102
105
|
|
|
103
106
|
urlpatterns = [
|
|
104
107
|
# ...
|
|
105
|
-
path("qstash/webhook/",
|
|
108
|
+
path("qstash/webhook/", include("django_qstash.urls")),
|
|
106
109
|
# ...
|
|
107
110
|
]
|
|
108
111
|
```
|
|
109
112
|
Be sure to use this path in your `DJANGO_QSTASH_WEBHOOK_PATH` environment variable.
|
|
110
113
|
|
|
114
|
+
|
|
115
|
+
The `django_qstash` webhook handler runs your `@shared_task` or `@stashed_task` functions via the `importlib` module. In other words, you should not need to modify the webhook handler.
|
|
116
|
+
|
|
117
|
+
|
|
111
118
|
### Required Environment Variables
|
|
112
119
|
|
|
113
120
|
Get your QStash token and signing keys from [Upstash](https://upstash.com/).
|
|
@@ -319,7 +326,7 @@ Various options are available to configure django-qstash.
|
|
|
319
326
|
|
|
320
327
|
### Example Django Settings
|
|
321
328
|
|
|
322
|
-
For a complete example, review [sample_project/settings.py](sample_project/settings.py) where [python-decouple](https://github.com/henriquebastos/python-decouple) is used to set the environment variables via the `.env` file or system environment variables (for production use).
|
|
329
|
+
For a complete example, review [sample_project/cfehome/settings.py](sample_project/cfehome/settings.py) where [python-decouple](https://github.com/henriquebastos/python-decouple) is used to set the environment variables via the `.env` file or system environment variables (for production use).
|
|
323
330
|
|
|
324
331
|
Using `os.environ`:
|
|
325
332
|
```python
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: django-qstash
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.14
|
|
4
4
|
Summary: A drop-in replacement for Celery's shared_task with Upstash QStash.
|
|
5
5
|
Author-email: Justin Mitchel <justin@codingforentrepreneurs.com>
|
|
6
6
|
Project-URL: Changelog, https://github.com/jmitchel3/django-qstash
|
|
@@ -72,7 +72,7 @@ This allows us to:
|
|
|
72
72
|
- [Installation](#installation)
|
|
73
73
|
- [Using Pip](#using-pip)
|
|
74
74
|
- [Update Settings (`settings.py`)](#update-settings-settingspy)
|
|
75
|
-
- [Configure Webhook
|
|
75
|
+
- [Configure QStash Webhook Handler](#configure-qstash-webhook-handler)
|
|
76
76
|
- [Required Environment Variables](#required-environment-variables)
|
|
77
77
|
- [Sample Project](#sample-project)
|
|
78
78
|
- [Dependencies](#dependencies)
|
|
@@ -123,20 +123,27 @@ INSTALLED_APPS = [
|
|
|
123
123
|
- `django_qstash.results` (Optional): Store task results in Django DB
|
|
124
124
|
- `django_qstash.schedules` (Optional): Use QStash Schedules to run your `django_qstash` tasks. Out of the box support for _django_qstash_ `@stashed_task`. Schedule tasks using _cron_ (e.g. `0 0 * * *`) format which is required based on [QStash Schedules](https://upstash.com/docs/qstash/features/schedules). use [contrab.guru](https://crontab.guru/) for writing the cron format.
|
|
125
125
|
|
|
126
|
-
### Configure Webhook
|
|
126
|
+
### Configure QStash Webhook Handler
|
|
127
|
+
|
|
128
|
+
Set it and forget it. `django_qstash` will handle the webhook from qstash automatically for you.
|
|
127
129
|
|
|
128
130
|
In your `ROOT_URLCONF` (e.g. `urls.py`), add the following:
|
|
131
|
+
|
|
129
132
|
```python
|
|
130
|
-
from
|
|
133
|
+
from django.urls import include
|
|
131
134
|
|
|
132
135
|
urlpatterns = [
|
|
133
136
|
# ...
|
|
134
|
-
path("qstash/webhook/",
|
|
137
|
+
path("qstash/webhook/", include("django_qstash.urls")),
|
|
135
138
|
# ...
|
|
136
139
|
]
|
|
137
140
|
```
|
|
138
141
|
Be sure to use this path in your `DJANGO_QSTASH_WEBHOOK_PATH` environment variable.
|
|
139
142
|
|
|
143
|
+
|
|
144
|
+
The `django_qstash` webhook handler runs your `@shared_task` or `@stashed_task` functions via the `importlib` module. In other words, you should not need to modify the webhook handler.
|
|
145
|
+
|
|
146
|
+
|
|
140
147
|
### Required Environment Variables
|
|
141
148
|
|
|
142
149
|
Get your QStash token and signing keys from [Upstash](https://upstash.com/).
|
|
@@ -348,7 +355,7 @@ Various options are available to configure django-qstash.
|
|
|
348
355
|
|
|
349
356
|
### Example Django Settings
|
|
350
357
|
|
|
351
|
-
For a complete example, review [sample_project/settings.py](sample_project/settings.py) where [python-decouple](https://github.com/henriquebastos/python-decouple) is used to set the environment variables via the `.env` file or system environment variables (for production use).
|
|
358
|
+
For a complete example, review [sample_project/cfehome/settings.py](sample_project/cfehome/settings.py) where [python-decouple](https://github.com/henriquebastos/python-decouple) is used to set the environment variables via the `.env` file or system environment variables (for production use).
|
|
352
359
|
|
|
353
360
|
Using `os.environ`:
|
|
354
361
|
```python
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/commands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/migrations/0001_initial.py
RENAMED
|
File without changes
|
|
File without changes
|
{django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/migrations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/migrations/0001_initial.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/migrations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|