Skip to main content

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

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_tasks_local-2.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_tasks_local-2.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file django_tasks_local-2.0.tar.gz.

File metadata

  • Download URL: django_tasks_local-2.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for django_tasks_local-2.0.tar.gz
Algorithm Hash digest
SHA256 23e7df79a4766cbb0a76d87a2b844ab4798fb5c22880454a0fcb6acd73c50869
MD5 7ddd7308f190696357ad2f6ceeea6f0e
BLAKE2b-256 e42a35904b6a673f9e865d929d338d958c5263822a4bb021a29faf601b3a24b1

See more details on using hashes here.

File details

Details for the file django_tasks_local-2.0-py3-none-any.whl.

File metadata

  • Download URL: django_tasks_local-2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for django_tasks_local-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8ce8f5e39d449993c77d1db964b470601002d69c8bf01c4997cfa4d625feda0
MD5 02617ece089c941c60a11c28951bf5fe
BLAKE2b-256 c1a4b8031fad49e863ca6bcab81489d67538a61b0993402f9eccf9c2799ad7d3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page