z4j Django framework adapter (Apache 2.0)
Project description
z4j-django
The Django framework adapter for z4j.
Adds the z4j agent into your Django project as a single
INSTALLED_APPS entry. Auto-discovers the engine adapter you have
installed (Celery, RQ, Dramatiq, Huey, arq, TaskIQ) and streams every
task lifecycle event from your Django workers to z4j. Operator
control actions (retry, cancel, bulk retry, purge, restart) flow back
the same channel.
What it ships
- One-line install, add
"z4j_django"toINSTALLED_APPS; the agent starts when Django boots, no decorator on every task - Engine auto-discovery, picks up whichever z4j engine adapter is installed alongside (Celery, RQ, Dramatiq, Huey, arq, TaskIQ). Multiple engines in the same project are first-class.
- Schedule integration, pair with
z4j-celerybeatto surface django-celery-beat schedules on the dashboard's Schedules page @z4j_metadecorator, optional per-task annotations (priority="critical",description="...") that the dashboard honors for filtering and SLO display- Service-user safe, auto-relocates the local outbound buffer
to
$TMPDIR/z4j-{uid}when$HOMEis unwritable (gunicorn underwww-data,nginx, etc.)
Install
pip install z4j-django z4j-celery z4j-celerybeat
Then in settings.py:
INSTALLED_APPS = [
# ...
"django_celery_beat", # if you use celery-beat
"z4j_django",
]
The agent reads its bearer token from Z4J_AGENT_TOKEN, z4j URL
from Z4J_BRAIN_URL, and the project slug from Z4J_PROJECT. Mint
the token from the dashboard's Agents page.
Reliability
- No exception from the agent ever propagates back into Django request handlers, signals, or your worker code.
- Events buffer locally when z4j is unreachable; your application never blocks on network I/O.
- Agent reconnects on every transient failure with bounded backoff.
Documentation
Full docs at z4j.dev/frameworks/django/.
License
Apache-2.0, see LICENSE.
Links
- Homepage: https://z4j.com
- Documentation: https://z4j.dev
- PyPI: https://pypi.org/project/z4j-django/
- Issues: https://github.com/z4jdev/z4j-django/issues
- Changelog: CHANGELOG.md
- Security: security@z4j.com (see SECURITY.md)
Project details
Release history Release notifications | RSS feed
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 z4j_django-1.5.0.tar.gz.
File metadata
- Download URL: z4j_django-1.5.0.tar.gz
- Upload date:
- Size: 42.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70553ce913343657d431d1e02c9b246373eb19880af0f430f97ad0a78fa40031
|
|
| MD5 |
58b4655249e7b1452df162043376e2c9
|
|
| BLAKE2b-256 |
c9af6f97a0fe3cb941b2be22b617b12d02cf2984add8cd32c665c5811e2d3769
|
File details
Details for the file z4j_django-1.5.0-py3-none-any.whl.
File metadata
- Download URL: z4j_django-1.5.0-py3-none-any.whl
- Upload date:
- Size: 39.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a3c94011ea2d128ef169aeb31d1c724998e4d7d4c5cd257ef1815c7c506b15a
|
|
| MD5 |
a27f5d91272153b4fc653b092b6d67f4
|
|
| BLAKE2b-256 |
dc4cf314d26d2a820cdd27246ebd3e647c69ded336332df007dc8f1b99d58deb
|