django-tasks-local
Zero-infrastructure task backends for Django 6.
Django 6 ships with ImmediateBackend (blocks the request) and DummyBackend (does nothing). This package provides background execution with zero infrastructure:
- ThreadPoolBackend - I/O-bound tasks (emails, API calls, database)
- ProcessPoolBackend - CPU-bound tasks (image processing, data analysis)
No Redis, Celery, or database required.
Installation
pip install django-tasks-local
Quick Start
# settings.py
TASKS = {
"default": {"BACKEND": "django_tasks_local.ThreadPoolBackend"},
}
from django.tasks import task
@task
def send_welcome_email(user_id):
...
send_welcome_email.enqueue(user.id)
Documentation
- Usage Guide - Configuration, multiple backends, retrieving results
- API Reference - Backend capabilities and methods
- Gotchas - Limitations and edge cases
Limitations
- In-memory only - Results lost on restart
- No scheduling -
supports_defer = False - No priority - FIFO execution
For persistence, see django-tasks which provides DatabaseBackend and RQBackend.
Metadata
Release files for django-tasks-local 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_tasks_local-2.0.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_tasks_local-2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / django_tasks_local-2.0.tar.gz
| Download URL | django_tasks_local-2.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23e7df79a4766cbb0a76d87a2b844ab4798fb5c22880454a0fcb6acd73c50869
|
|
BLAKE2b-256 checksum How to use checksums |
e42a35904b6a673f9e865d929d338d958c5263822a4bb021a29faf601b3a24b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / django_tasks_local-2.0-py3-none-any.whl
| Download URL | django_tasks_local-2.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8ce8f5e39d449993c77d1db964b470601002d69c8bf01c4997cfa4d625feda0
|
|
BLAKE2b-256 checksum How to use checksums |
c1a4b8031fad49e863ca6bcab81489d67538a61b0993402f9eccf9c2799ad7d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|