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

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.0a5.tar.gz (86.2 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.0a5-py3-none-any.whl (105.4 kB view details)

Uploaded Python 3

File details

Details for the file django_absurd-0.1.0a5.tar.gz.

File metadata

  • Download URL: django_absurd-0.1.0a5.tar.gz
  • Upload date:
  • Size: 86.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for django_absurd-0.1.0a5.tar.gz
Algorithm Hash digest
SHA256 0fa2a647b808f8a48b863e49ecd32809d9c0926f21c118f3103baa1d2493be31
MD5 5fc77b27b377bdf48f4a98005047aad3
BLAKE2b-256 0737400ea79a01d814d3c1256741af6dd09494e66650f190f31cbfabdf52c3f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_absurd-0.1.0a5.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.0a5-py3-none-any.whl.

File metadata

  • Download URL: django_absurd-0.1.0a5-py3-none-any.whl
  • Upload date:
  • Size: 105.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for django_absurd-0.1.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 c7db643e0df768d0c4ad872ce85f2351cf836c1e2e495f355fb71bcaa04297df
MD5 b91d7ef3f2b6b602deae2388878e9934
BLAKE2b-256 0de15bd98271aee06cbf313299654c3d735304ab83c03ecb720b2bbdc81b2d9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_absurd-0.1.0a5-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