This release is a pre-release and may not be stable for production use.
django-absurd
Run background tasks in Django on Postgres — no separate broker, no Redis, no Celery. Plugs Absurd, a Postgres-native workflow engine, into Django's Tasks framework, reusing your existing database connection.
Alpha. APIs and behavior may change between releases.
Install
uv add django-absurd --prerelease allow # or: pip install --pre django-absurd
Only pre-releases are published during alpha, hence the flags. 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",
},
}
python manage.py migrate # installs the Absurd schema, provisions declared queues
from django.tasks import task
@task
def add(a: int, b: int) -> int:
return a + b
result = add.enqueue(2, 3) # returns a TaskResult; a worker runs it
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-0.1.0a6.tar.gz.
File metadata
- Download URL: django_absurd-0.1.0a6.tar.gz
- Upload date:
- Size: 132.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81abf68172ab0d6b143feccfc2adfd4f7d351a1249822bf527b793b193720094
|
|
| MD5 |
812de4b0fef24d598e2b3c22cc4245bb
|
|
| BLAKE2b-256 |
e36a0fea32464b2d250cd006c000a6148166fdfdac61ef465466bea878a436f2
|
Provenance
The following attestation bundles were made for django_absurd-0.1.0a6.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-0.1.0a6.tar.gz -
Subject digest:
81abf68172ab0d6b143feccfc2adfd4f7d351a1249822bf527b793b193720094 - Sigstore transparency entry: 2436309825
- Sigstore integration time:
-
Permalink:
lincolnloop/django-absurd@69258467ae28e0668253e70f85a77ffb2c107251 -
Branch / Tag:
refs/tags/v0.1.0a6 - Owner: https://github.com/lincolnloop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@69258467ae28e0668253e70f85a77ffb2c107251 -
Trigger Event:
release
-
Statement type:
File details
Details for the file django_absurd-0.1.0a6-py3-none-any.whl.
File metadata
- Download URL: django_absurd-0.1.0a6-py3-none-any.whl
- Upload date:
- Size: 155.1 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 |
0e4c8b70e484f49b78af5de7344be1c495b71e60f8bd4bbac8aa03f026483881
|
|
| MD5 |
f10fc3bb188d26908ce86b1bf2b88174
|
|
| BLAKE2b-256 |
637a50a950d02a59309d37f0cd7fd407c3a1d7853b31a8e6c3f133f982ef9015
|
Provenance
The following attestation bundles were made for django_absurd-0.1.0a6-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-0.1.0a6-py3-none-any.whl -
Subject digest:
0e4c8b70e484f49b78af5de7344be1c495b71e60f8bd4bbac8aa03f026483881 - Sigstore transparency entry: 2436310896
- Sigstore integration time:
-
Permalink:
lincolnloop/django-absurd@69258467ae28e0668253e70f85a77ffb2c107251 -
Branch / Tag:
refs/tags/v0.1.0a6 - Owner: https://github.com/lincolnloop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@69258467ae28e0668253e70f85a77ffb2c107251 -
Trigger Event:
release
-
Statement type: