Skip to main content
Pre-release

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

django_absurd-0.1.0a4.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

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

django_absurd-0.1.0a4-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

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

Hashes for django_absurd-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 61fea08c8650e7b54431a2584ba10a80bdc429b642f19223dd55ba5aeb0a42fa
MD5 0baf339eafd8cf1f47d8f84b72fcc838
BLAKE2b-256 3b63e520cd0119a1b0f0bdf39fb3d0be48ede62ef495339e6268d1384ab9e23a

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_absurd-0.1.0a4.tar.gz:

Publisher: publish.yml on lincolnloop/django-absurd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for django_absurd-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 063cf5700828996648eb1abb6d197e0e66b3aad8f92319e125eaae65a416bb77
MD5 ed24c697b6e13af1ee3f78ca04d79caa
BLAKE2b-256 d5c98300365826aae58208bb714a3eee9345a68148c93107c57dfde9c17d66d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_absurd-0.1.0a4-py3-none-any.whl:

Publisher: publish.yml on lincolnloop/django-absurd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page