# Django Dramatiq Result Backend
A Django-based ResultBackend for [Dramatiq](https://dramatiq.io/).
## Features
- Store and retrieve task results using Django's ORM.
- Automatically handle result expiration.
## Installation
```bash
pip install django-dramatiq-result-backend
```
## Usage
### Configure Django
Add `django_dramatiq_result_backend` to your `INSTALLED_APPS` in `settings.py`.
### Configure Dramatiq Result Backend
```python
# settings.py
DRAMATIQ_RESULT_BACKEND = {
"BACKEND": "django_dramatiq_result_backend.backends.DjangoDramatiqResultBackend",
"OPTIONS": {
"model": "django_dramatiq_result_backend.Result",
"expiration": 30 * 60 * 60 * 24, # 30 days
},
}
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "django-dramatiq-result-backend",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "django, dramatiq, result-backend, async",
"author": null,
"author_email": "Sunil <shrest4647+pip@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/6d/3c/7557ea0d039825a2dbcedb30aa419fe1ae68420d52d56747465687a82bfe/django_dramatiq_result_backend-0.1.5.tar.gz",
"platform": null,
"description": "# Django Dramatiq Result Backend\n\nA Django-based ResultBackend for [Dramatiq](https://dramatiq.io/).\n\n## Features\n\n- Store and retrieve task results using Django's ORM.\n- Automatically handle result expiration.\n\n## Installation\n\n```bash\npip install django-dramatiq-result-backend\n```\n\n## Usage\n\n### Configure Django\n\nAdd `django_dramatiq_result_backend` to your `INSTALLED_APPS` in `settings.py`.\n\n### Configure Dramatiq Result Backend\n\n```python\n# settings.py\n\nDRAMATIQ_RESULT_BACKEND = {\n \"BACKEND\": \"django_dramatiq_result_backend.backends.DjangoDramatiqResultBackend\",\n \"OPTIONS\": {\n \"model\": \"django_dramatiq_result_backend.Result\",\n \"expiration\": 30 * 60 * 60 * 24, # 30 days\n },\n}\n\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "A Django-based result backend for Dramatiq.",
"version": "0.1.5",
"project_urls": {
"Bug Tracker": "https://github.com/Shrest4647/django-dramatiq-result-backend/issues",
"Documentation": "https://github.com/Shrest4647/django-dramatiq-result-backend#readme",
"Homepage": "https://github.com/Shrest4647/django-dramatiq-result-backend",
"Source Code": "https://github.com/Shrest4647/django-dramatiq-result-backend"
},
"split_keywords": [
"django",
" dramatiq",
" result-backend",
" async"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "acf0b4b45be9181fc3c5f4da42de117a6c9384f9880a498cafc3ebdf23b8e45d",
"md5": "52039f543eeadf6a00328ba8e012f2c9",
"sha256": "789ff99547b0a55a8debca29388e770cb2bbb92667dd93b10f4b6e40eecb1963"
},
"downloads": -1,
"filename": "django_dramatiq_result_backend-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "52039f543eeadf6a00328ba8e012f2c9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 5362,
"upload_time": "2024-12-13T11:59:10",
"upload_time_iso_8601": "2024-12-13T11:59:10.532999Z",
"url": "https://files.pythonhosted.org/packages/ac/f0/b4b45be9181fc3c5f4da42de117a6c9384f9880a498cafc3ebdf23b8e45d/django_dramatiq_result_backend-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6d3c7557ea0d039825a2dbcedb30aa419fe1ae68420d52d56747465687a82bfe",
"md5": "1a9436788586aa69c301bf16bb59200e",
"sha256": "027973e43e2a8258ce92ae5500987a251fdff71aa16cbedc0b2abfe80cf4e154"
},
"downloads": -1,
"filename": "django_dramatiq_result_backend-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "1a9436788586aa69c301bf16bb59200e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3704,
"upload_time": "2024-12-13T11:59:12",
"upload_time_iso_8601": "2024-12-13T11:59:12.712397Z",
"url": "https://files.pythonhosted.org/packages/6d/3c/7557ea0d039825a2dbcedb30aa419fe1ae68420d52d56747465687a82bfe/django_dramatiq_result_backend-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-13 11:59:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Shrest4647",
"github_project": "django-dramatiq-result-backend",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "django-dramatiq-result-backend"
}