z4j Django framework adapter (Apache 2.0)
Project description
z4j-django
License: Apache 2.0
Django framework adapter for z4j. Drops into any
Django project via INSTALLED_APPS and bootstraps a z4j agent on
Django startup - no boilerplate, no signal wiring, no custom management
commands.
Install
Pick your task engine and install with the matching extra. Each extra pulls the engine adapter AND its companion scheduler in one shot, so a fresh install never needs a second command.
pip install z4j-django[celery] # Celery + celery-beat
pip install z4j-django[rq] # RQ + rq-scheduler
pip install z4j-django[dramatiq] # Dramatiq + APScheduler
pip install z4j-django[huey] # Huey + huey-periodic
pip install z4j-django[arq] # arq + arq-cron
pip install z4j-django[taskiq] # TaskIQ + taskiq-scheduler
pip install z4j-django[all] # every engine (CI / kitchen sink)
pip install z4j-django (no extra) installs only the framework adapter.
That's useful if you already manage engine packages elsewhere; otherwise
always pick an engine extra.
Configure
Add z4j_django to your installed apps and set the Z4J dict in Django
settings:
# settings.py
INSTALLED_APPS = [
# ... your apps ...
"z4j_django",
]
Z4J = {
"brain_url": env("Z4J_BRAIN_URL"), # e.g. "https://z4j.internal"
"token": env("Z4J_TOKEN"), # minted in the brain dashboard
"project_id": env("Z4J_PROJECT_ID", default="default"),
}
On python manage.py runserver (or gunicorn, daphne, uvicorn, ...)
the agent starts, connects to the brain, and z4j's dashboard populates
with every @shared_task and @task it discovers in your INSTALLED_APPS.
What it does
| Piece | Purpose |
|---|---|
Z4JDjangoConfig.ready() |
Boots the agent once Django is fully loaded (after INSTALLED_APPS is populated) |
| Five-layer task discovery | Walks INSTALLED_APPS to find @shared_task / @app.task declarations |
| Django auth bridge | Maps the signed-in Django user to z4j_core.User for audit-log stamping |
django.core.checks |
Surfaces misconfiguration at manage.py check time |
| Optional admin embed | Renders a read-only "z4j agent status" panel in the Django admin |
Reliability
z4j-django follows the project-wide safety rule: z4j never breaks
your Django process. Agent failures are caught at the boundary, logged,
and swallowed. Your runserver, gunicorn, and ASGI workers are never
affected by a z4j issue.
Documentation
License
Apache 2.0 - see LICENSE. Your Django application is never
AGPL-tainted by importing z4j_django.
Links
- Homepage: https://z4j.com
- Documentation: https://z4j.dev
- 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.3.0.tar.gz.
File metadata
- Download URL: z4j_django-1.3.0.tar.gz
- Upload date:
- Size: 46.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d02d7a6c832d36f662e7edc4e5b20c34bb1033726b238ec1ff6eb302e106aee1
|
|
| MD5 |
4efa9febe608bf21bfd9ed1fb6bc3932
|
|
| BLAKE2b-256 |
f907538104d64d6ce22dc3606b6f13064ebfede95ff28a0ea7bf74602789b63d
|
File details
Details for the file z4j_django-1.3.0-py3-none-any.whl.
File metadata
- Download URL: z4j_django-1.3.0-py3-none-any.whl
- Upload date:
- Size: 42.0 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 |
457b4419193fac0e799fc391ea302a808c4cf9e6be582ce687503cf53d94c2c6
|
|
| MD5 |
8a92de8ae61c8a9f23bdd1c807af6702
|
|
| BLAKE2b-256 |
5f2be140fea8853cb1f8e94472fb96e5eddbf9d092a071ee868252a45de6e9ba
|