django-absurd
Run background tasks and durable workflows in Django on Postgres. Plugs Absurd, a Postgres-native workflow engine, into Django's Tasks framework, reusing the database connection your project already has.
Install
uv add django-absurd
pip install django-absurd
Needs Python 3.12+, Django 6.0+, and PostgreSQL on the psycopg (v3) driver — Absurd reuses Django's connection, so psycopg2 won't work.
Quickstart
# settings.py
INSTALLED_APPS = [
# ...
"django_absurd",
]
TASKS = {
"default": {
"BACKEND": "django_absurd.backends.AbsurdBackend",
},
}
# Installs the Absurd schema and provisions the queues you declared.
python manage.py migrate
from django.tasks import task
@task
def add(a: int, b: int) -> int:
return a + b
# Returns a TaskResult straight away; a worker runs the task.
result = add.enqueue(2, 3)
python manage.py absurd_worker
That's the whole loop. The "default" queue is declared for you, so migrate
provisions it without any QUEUES setting of your own.
Documentation
- Documentation — tasks, workflows, cron jobs, workers, cleanup, monitoring, testing, and configuration.
- Runnable examples
— three dockerized nanodjango demos (
webenqueue+result,beat, andpg_cron), each with onedocker compose up.
License
MIT — see LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_absurd-1.0.0.tar.gz.
File metadata
- Download URL: django_absurd-1.0.0.tar.gz
- Upload date:
- Size: 137.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5200d378f046e6cd9dfd32d8b5d818d800b6ab39cd3ee8118f5eacb723eef45
|
|
| MD5 |
aabb798e451a2b6717486277c0ded9ff
|
|
| BLAKE2b-256 |
3721167e80df753a488653dcb6c5e22ec11c30940295dcd9a2cd14e4df87f781
|
Provenance
The following attestation bundles were made for django_absurd-1.0.0.tar.gz:
Publisher:
publish.yml on lincolnloop/django-absurd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_absurd-1.0.0.tar.gz -
Subject digest:
d5200d378f046e6cd9dfd32d8b5d818d800b6ab39cd3ee8118f5eacb723eef45 - Sigstore transparency entry: 2581126575
- Sigstore integration time:
-
Permalink:
lincolnloop/django-absurd@0ca1767e7b9a73f6c78068ba78b2e2ab85734799 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/lincolnloop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0ca1767e7b9a73f6c78068ba78b2e2ab85734799 -
Trigger Event:
release
-
Statement type:
File details
Details for the file django_absurd-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_absurd-1.0.0-py3-none-any.whl
- Upload date:
- Size: 158.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a06bc2653e34d2f4203fb852ceb2d560fe731db7830c8c34a253bd7a52aba814
|
|
| MD5 |
ec154e14e7b4f13a907961f80c172001
|
|
| BLAKE2b-256 |
731469c1c0bbf6dad43c0577244dc835bd3b71de3909316eb23ec91ccc5e4ee7
|
Provenance
The following attestation bundles were made for django_absurd-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on lincolnloop/django-absurd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_absurd-1.0.0-py3-none-any.whl -
Subject digest:
a06bc2653e34d2f4203fb852ceb2d560fe731db7830c8c34a253bd7a52aba814 - Sigstore transparency entry: 2581126596
- Sigstore integration time:
-
Permalink:
lincolnloop/django-absurd@0ca1767e7b9a73f6c78068ba78b2e2ab85734799 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/lincolnloop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0ca1767e7b9a73f6c78068ba78b2e2ab85734799 -
Trigger Event:
release
-
Statement type: