This release is a pre-release and may not be stable for production use.
django-absurd
Django integration for Absurd, the Postgres-native workflow engine. Runs Django's Tasks framework on Postgres — no separate broker — reusing Django's own database connection.
Alpha. APIs and behavior may change between releases.
Requirements
- Python 3.12+, Django 6.0+
- PostgreSQL with the psycopg (v3) Django backend (the Absurd SDK reuses Django's connection and requires psycopg3)
Install
pip install django-absurd
Quickstart
Add the app and point Django's TASKS setting at the backend:
# settings.py
INSTALLED_APPS = [
# ...
"django_absurd",
]
TASKS = {
"default": {
"BACKEND": "django_absurd.backends.AbsurdBackend",
},
}
python manage.py migrate # create the Absurd schema
python manage.py absurd_worker # run a worker (consumes the "default" queue)
Define a task with Django's Tasks API and enqueue it — the "default" queue is
created automatically on first use:
from django.tasks import task
@task
def add(a: int, b: int) -> int:
return a + b
result = add.enqueue(2, 3) # returns a TaskResult; the worker runs it
Documentation
- Integration guide — full configuration and
OPTIONS, workers, task parameters, retrieving results, deployment notes, and adopting an existing Absurd database. - Runnable example — a dockerized Django project demonstrating the whole flow end to end.
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.0a4.tar.gz.
File metadata
- Download URL: django_absurd-0.1.0a4.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61fea08c8650e7b54431a2584ba10a80bdc429b642f19223dd55ba5aeb0a42fa
|
|
| MD5 |
0baf339eafd8cf1f47d8f84b72fcc838
|
|
| BLAKE2b-256 |
3b63e520cd0119a1b0f0bdf39fb3d0be48ede62ef495339e6268d1384ab9e23a
|
Provenance
The following attestation bundles were made for django_absurd-0.1.0a4.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.0a4.tar.gz -
Subject digest:
61fea08c8650e7b54431a2584ba10a80bdc429b642f19223dd55ba5aeb0a42fa - Sigstore transparency entry: 1946018845
- Sigstore integration time:
-
Permalink:
lincolnloop/django-absurd@644d45e735c2a487339eb1de65adb3645a88df55 -
Branch / Tag:
refs/tags/v0.1.0a4 - Owner: https://github.com/lincolnloop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@644d45e735c2a487339eb1de65adb3645a88df55 -
Trigger Event:
release
-
Statement type:
File details
Details for the file django_absurd-0.1.0a4-py3-none-any.whl.
File metadata
- Download URL: django_absurd-0.1.0a4-py3-none-any.whl
- Upload date:
- Size: 40.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
063cf5700828996648eb1abb6d197e0e66b3aad8f92319e125eaae65a416bb77
|
|
| MD5 |
ed24c697b6e13af1ee3f78ca04d79caa
|
|
| BLAKE2b-256 |
d5c98300365826aae58208bb714a3eee9345a68148c93107c57dfde9c17d66d3
|
Provenance
The following attestation bundles were made for django_absurd-0.1.0a4-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.0a4-py3-none-any.whl -
Subject digest:
063cf5700828996648eb1abb6d197e0e66b3aad8f92319e125eaae65a416bb77 - Sigstore transparency entry: 1946018964
- Sigstore integration time:
-
Permalink:
lincolnloop/django-absurd@644d45e735c2a487339eb1de65adb3645a88df55 -
Branch / Tag:
refs/tags/v0.1.0a4 - Owner: https://github.com/lincolnloop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@644d45e735c2a487339eb1de65adb3645a88df55 -
Trigger Event:
release
-
Statement type: