Registry / web-framework / django-user-tasks

django-user-tasks

JSON →
library4.0.0pypypi✓ verified 81d ago

Management of user-triggered asynchronous tasks in Django projects. Integrates with Celery and Django REST Framework to track task status and results. Current version: 4.0.0, released 2025. Monthly releases.

pip install django-user-tasks
INSTALL
IMPORT
SIG · DJANGO-USER-TASKS
D
django-user-tasks
web-frameworkpythonv4.0.0
Install
6.6s avg
Import
Disk
115MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v4.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 116.1MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 6.6s · import 0.000s · 117MB
115MB installed
● package 115MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Signal
from user_tasks import Signal
from django_user_tasks.models import UserTask
user_task_stopped
from user_tasks import user_task_stopped
from django_user_tasks.models import UserTask

Create a user task that runs asynchronously. Requires Celery configured.

from django_user_tasks.models import create_user_task # Create a user task and trigger a Celery task def my_view(request): user = request.user task_type = 'export' task_kwargs = {'param1': 'value'} user_task = create_user_task(user, task_type, task_kwargs) return user_task.state # e.g., 'PENDING'
Debug
Known issues
breakingIn v4.0.0, Celery protocol v2 headers changed. The 'id' parameter name was updated. If you use custom Celery task headers, verify your code.
fix
Update any code that reads or sets task headers to use the new 'id' key.
affects: >=4.0.0
deprecatedThe function `get_storage` has been deprecated in Django 5.2. In v3.4.1, a fix was applied; but if you call `get_storage` directly, update to Django's new storage API.
fix
Use Django's `storages` module instead of `django.core.files.storage.get_storage`.
affects: <3.4.1
gotcha`create_user_task` is not in the `tasks` module. Many users import it incorrectly as `from django_user_tasks.tasks import create_user_task`.
fix
Import from `django_user_tasks.models`.
affects: all
Upgrade
Version history
4.0.0latest on PyPI · released Mar 13, 2026
Audit
Dependencies
DjangorequiredRequired Django project
CeleryrequiredTask queue backend
djangorestframeworkrequiredREST API for task management
Agent activity
28 hits · last 30 days
node
26
Amazon
1
OpenAI (training)
1
Resources
django-user-tasks — pip install django-user-tasks · libregistry