# Django simple queue
It is a very simple app which uses database for managing the task queue.
## Installation
````
pip install django-simple-queue
````
## Set up
* Add ``django_simple_queue`` to INSTALLED_APPS in settings.py
* Add the following to urls.py in the main project directory.
````
path('django_simple_queue/', include('django_simple_queue.urls')),
````
* Apply the database migrations
## Usage
Start the worker process as follows:
````
python manage.py task_worker
````
Use ``from django_simple_queue.utils import create_task`` for creating new tasks.
e.g.
````
create_task(
task="full_path_of_function",
args={"arg1": 1, "arg2": 2} # Should be a dict object
)
````
The task queue can be viewed at /django_simple_queue/task
Raw data
{
"_id": null,
"home_page": "https://github.com/shubhamdipt/django-simple-queue",
"name": "django-simple-queue",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "django, queue, task, manager",
"author": "Shubham Dipt",
"author_email": "shubham.dipt@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b9/17/4c67f041a12182be0edf26138a422954476a506e3b912f88ba988afbbc2a/django-simple-queue-0.1.8.tar.gz",
"platform": "any",
"description": "# Django simple queue\n\nIt is a very simple app which uses database for managing the task queue.\n\n## Installation\n````\npip install django-simple-queue\n````\n\n## Set up\n* Add ``django_simple_queue`` to INSTALLED_APPS in settings.py\n* Add the following to urls.py in the main project directory.\n````\npath('django_simple_queue/', include('django_simple_queue.urls')),\n````\n* Apply the database migrations\n\n## Usage\n\nStart the worker process as follows:\n````\npython manage.py task_worker\n````\n\nUse ``from django_simple_queue.utils import create_task`` for creating new tasks.\ne.g.\n````\ncreate_task(\n task=\"full_path_of_function\",\n args={\"arg1\": 1, \"arg2\": 2} # Should be a dict object\n)\n````\nThe task queue can be viewed at /django_simple_queue/task\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Django based app for Task queue manager using database as the broker.",
"version": "0.1.8",
"project_urls": {
"Homepage": "https://github.com/shubhamdipt/django-simple-queue"
},
"split_keywords": [
"django",
" queue",
" task",
" manager"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1b496d278f8d22a5c24f77c0dc4586a0b8950722e2e6a9ffc0fae9d72a1b3216",
"md5": "397684d04d9f0f1e56632f806058437c",
"sha256": "697868aaf9f1b6ff030086b1bce1cfba1a5452ed3d45fffeaef254f4314de50a"
},
"downloads": -1,
"filename": "django_simple_queue-0.1.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "397684d04d9f0f1e56632f806058437c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 8528,
"upload_time": "2024-09-09T15:59:36",
"upload_time_iso_8601": "2024-09-09T15:59:36.709625Z",
"url": "https://files.pythonhosted.org/packages/1b/49/6d278f8d22a5c24f77c0dc4586a0b8950722e2e6a9ffc0fae9d72a1b3216/django_simple_queue-0.1.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b9174c67f041a12182be0edf26138a422954476a506e3b912f88ba988afbbc2a",
"md5": "08d500b4f792eda011ed7199dd553410",
"sha256": "b0aeb7cc89cfb442525669f05955d467211b44b3c1158bb64091563b5868ad75"
},
"downloads": -1,
"filename": "django-simple-queue-0.1.8.tar.gz",
"has_sig": false,
"md5_digest": "08d500b4f792eda011ed7199dd553410",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6821,
"upload_time": "2024-09-09T15:59:37",
"upload_time_iso_8601": "2024-09-09T15:59:37.969176Z",
"url": "https://files.pythonhosted.org/packages/b9/17/4c67f041a12182be0edf26138a422954476a506e3b912f88ba988afbbc2a/django-simple-queue-0.1.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-09 15:59:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "shubhamdipt",
"github_project": "django-simple-queue",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "Django",
"specs": [
[
">=",
"3.0.0"
]
]
}
],
"lcname": "django-simple-queue"
}