django-simple-queue


Namedjango-simple-queue JSON
Version 0.1.10 PyPI version JSON
download
home_pagehttps://github.com/shubhamdipt/django-simple-queue
SummaryDjango based app for Task queue manager using database as the broker.
upload_time2024-12-16 15:20:23
maintainerNone
docs_urlNone
authorShubham Dipt
requires_pythonNone
licenseMIT
keywords django queue task manager
VCS
bugtrack_url
requirements Django
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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/3b/68/1755fdb221178e3b42ce37b4ec110315b7157eeb50312563ba7502d85315/django-simple-queue-0.1.10.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.10",
    "project_urls": {
        "Homepage": "https://github.com/shubhamdipt/django-simple-queue"
    },
    "split_keywords": [
        "django",
        " queue",
        " task",
        " manager"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e329e5e157aaf476e77cce121ec067e6797b5b66138057681a5993e1df0376e",
                "md5": "d0b8c89235b92c959cbfc8fa20e7137c",
                "sha256": "048172b935b7b29997fb89508fa21d445373a0450372eb0ca8b307431dfd2faf"
            },
            "downloads": -1,
            "filename": "django_simple_queue-0.1.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d0b8c89235b92c959cbfc8fa20e7137c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8721,
            "upload_time": "2024-12-16T15:20:21",
            "upload_time_iso_8601": "2024-12-16T15:20:21.997808Z",
            "url": "https://files.pythonhosted.org/packages/3e/32/9e5e157aaf476e77cce121ec067e6797b5b66138057681a5993e1df0376e/django_simple_queue-0.1.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b681755fdb221178e3b42ce37b4ec110315b7157eeb50312563ba7502d85315",
                "md5": "6bc76f836885f408a2c7c696226f1951",
                "sha256": "60f759995f73bb9fb73b37d94b4466adfcc402fb61c3f10b8f2d104dc3ce6842"
            },
            "downloads": -1,
            "filename": "django-simple-queue-0.1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "6bc76f836885f408a2c7c696226f1951",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6947,
            "upload_time": "2024-12-16T15:20:23",
            "upload_time_iso_8601": "2024-12-16T15:20:23.184025Z",
            "url": "https://files.pythonhosted.org/packages/3b/68/1755fdb221178e3b42ce37b4ec110315b7157eeb50312563ba7502d85315/django-simple-queue-0.1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-16 15:20:23",
    "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"
}
        
Elapsed time: 0.43699s