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.

Files changed (64) hide show
  1. {django_qstash-0.0.13 → django_qstash-0.0.14}/PKG-INFO +13 -6
  2. {django_qstash-0.0.13 → django_qstash-0.0.14}/README.md +12 -5
  3. {django_qstash-0.0.13 → django_qstash-0.0.14}/pyproject.toml +1 -1
  4. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/__init__.py +1 -1
  5. django_qstash-0.0.14/src/django_qstash/urls.py +9 -0
  6. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/PKG-INFO +13 -6
  7. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/SOURCES.txt +1 -0
  8. {django_qstash-0.0.13 → django_qstash-0.0.14}/setup.cfg +0 -0
  9. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/app/__init__.py +0 -0
  10. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/app/base.py +0 -0
  11. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/app/decorators.py +0 -0
  12. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/callbacks.py +0 -0
  13. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/client.py +0 -0
  14. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/cron.py +0 -0
  15. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/db/__init__.py +0 -0
  16. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/db/models.py +0 -0
  17. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/discovery/__init__.py +0 -0
  18. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/discovery/fields.py +0 -0
  19. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/discovery/models.py +0 -0
  20. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/discovery/utils.py +0 -0
  21. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/discovery/validators.py +0 -0
  22. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/exceptions.py +0 -0
  23. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/handlers.py +0 -0
  24. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/__init__.py +0 -0
  25. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/commands/__init__.py +0 -0
  26. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/commands/available_tasks.py +0 -0
  27. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/commands/clear_stale_results.py +0 -0
  28. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/management/commands/task_schedules.py +0 -0
  29. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/__init__.py +0 -0
  30. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/admin.py +0 -0
  31. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/apps.py +0 -0
  32. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/migrations/0001_initial.py +0 -0
  33. {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
  34. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/migrations/__init__.py +0 -0
  35. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/models.py +0 -0
  36. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/services.py +0 -0
  37. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/results/tasks.py +0 -0
  38. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/__init__.py +0 -0
  39. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/admin.py +0 -0
  40. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/apps.py +0 -0
  41. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/exceptions.py +0 -0
  42. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/formatters.py +0 -0
  43. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/forms.py +0 -0
  44. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/migrations/0001_initial.py +0 -0
  45. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/migrations/0002_taskschedule_updated_at.py +0 -0
  46. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/migrations/0003_alter_taskschedule_cron.py +0 -0
  47. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/migrations/__init__.py +0 -0
  48. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/models.py +0 -0
  49. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/services.py +0 -0
  50. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/signals.py +0 -0
  51. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/schedules/validators.py +0 -0
  52. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/settings.py +0 -0
  53. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/utils.py +0 -0
  54. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash/views.py +0 -0
  55. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/dependency_links.txt +0 -0
  56. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/requires.txt +0 -0
  57. {django_qstash-0.0.13 → django_qstash-0.0.14}/src/django_qstash.egg-info/top_level.txt +0 -0
  58. {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_callbacks.py +0 -0
  59. {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_exceptions.py +0 -0
  60. {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_handlers.py +0 -0
  61. {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_results_models.py +0 -0
  62. {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_settings.py +0 -0
  63. {django_qstash-0.0.13 → django_qstash-0.0.14}/tests/test_utils.py +0 -0
  64. {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.13
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 URL](#configure-webhook-url)
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 URL
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 django_qstash.views import qstash_webhook_view
133
+ from django.urls import include
131
134
 
132
135
  urlpatterns = [
133
136
  # ...
134
- path("qstash/webhook/", qstash_webhook_view),
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 URL](#configure-webhook-url)
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 URL
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 django_qstash.views import qstash_webhook_view
104
+ from django.urls import include
102
105
 
103
106
  urlpatterns = [
104
107
  # ...
105
- path("qstash/webhook/", qstash_webhook_view),
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
@@ -6,7 +6,7 @@ requires = [
6
6
 
7
7
  [project]
8
8
  name = "django-qstash"
9
- version = "0.0.13"
9
+ version = "0.0.14"
10
10
  description = "A drop-in replacement for Celery's shared_task with Upstash QStash."
11
11
  readme = "README.md"
12
12
  license = { file = "LICENSE" }
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- __version__ = "0.0.13"
3
+ __version__ = "0.0.14"
4
4
 
5
5
  from django_qstash.app import shared_task
6
6
  from django_qstash.app import stashed_task
@@ -0,0 +1,9 @@
1
+ from __future__ import annotations
2
+
3
+ from django.urls import path
4
+
5
+ from django_qstash.views import qstash_webhook_view
6
+
7
+ urlpatterns = [
8
+ path("", qstash_webhook_view),
9
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: django-qstash
3
- Version: 0.0.13
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 URL](#configure-webhook-url)
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 URL
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 django_qstash.views import qstash_webhook_view
133
+ from django.urls import include
131
134
 
132
135
  urlpatterns = [
133
136
  # ...
134
- path("qstash/webhook/", qstash_webhook_view),
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
@@ -7,6 +7,7 @@ src/django_qstash/cron.py
7
7
  src/django_qstash/exceptions.py
8
8
  src/django_qstash/handlers.py
9
9
  src/django_qstash/settings.py
10
+ src/django_qstash/urls.py
10
11
  src/django_qstash/utils.py
11
12
  src/django_qstash/views.py
12
13
  src/django_qstash.egg-info/PKG-INFO
File without changes